mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12442 from DavidLin1577/patch-3
Fixed typo: 'lenght' in minimal-printfpull/12473/head
commit
92533ffec2
|
@ -508,7 +508,7 @@ int mbed_minimal_formatted_string(char *buffer, size_t length, const char *forma
|
||||||
value = va_arg(arguments, MBED_SIGNED_NATIVE_TYPE);
|
value = va_arg(arguments, MBED_SIGNED_NATIVE_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* constrict value based on lenght modifier */
|
/* constrict value based on length modifier */
|
||||||
switch (length_modifier) {
|
switch (length_modifier) {
|
||||||
case LENGTH_NONE:
|
case LENGTH_NONE:
|
||||||
value = (int) value;
|
value = (int) value;
|
||||||
|
@ -557,7 +557,7 @@ int mbed_minimal_formatted_string(char *buffer, size_t length, const char *forma
|
||||||
value = va_arg(arguments, MBED_UNSIGNED_NATIVE_TYPE);
|
value = va_arg(arguments, MBED_UNSIGNED_NATIVE_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* constrict value based on lenght modifier */
|
/* constrict value based on length modifier */
|
||||||
switch (length_modifier) {
|
switch (length_modifier) {
|
||||||
case LENGTH_NONE:
|
case LENGTH_NONE:
|
||||||
value = (unsigned int) value;
|
value = (unsigned int) value;
|
||||||
|
|
Loading…
Reference in New Issue