diff --git a/platform/mbed_lib.json b/platform/mbed_lib.json index 3c48f22c4a..b09bd4d1b8 100644 --- a/platform/mbed_lib.json +++ b/platform/mbed_lib.json @@ -140,15 +140,15 @@ "value": true }, "minimal-printf-enable-64-bit": { - "help": "Enable printing 64 bit integers when using mprintf profile", + "help": "Enable printing 64 bit integers when using minimal printf library", "value": true }, "minimal-printf-enable-floating-point": { - "help": "Enable floating point printing when using mprintf profile", + "help": "Enable floating point printing when using minimal printf library", "value": true }, "minimal-printf-set-floating-point-max-decimals": { - "help": "Maximum number of decimals to be printed", + "help": "Maximum number of decimals to be printed when using minimal printf library", "value": 6 } }, diff --git a/platform/source/minimal-printf/README.md b/platform/source/minimal-printf/README.md index 58d49535a1..1496353de1 100644 --- a/platform/source/minimal-printf/README.md +++ b/platform/source/minimal-printf/README.md @@ -1,7 +1,7 @@ # Minimal printf and snprintf -Library supports both printf and snprintf in 1252 bytes of flash. +Library supports both printf and snprintf in around 1300 bytes of flash. Prints directly to stdio/UART without using malloc. All flags and precision modifiers are ignored. There is no error handling if a writing error occurs. @@ -20,6 +20,10 @@ Supports: * %s: string. * %p: pointer (e.g. 0x00123456). +Note that support for: +* 64b modifiers is only present when `minimal-printf-enable-64-bit` config is set to `true` (default). +* Floating point parameters is only present when `minimal-printf-enable-floating-point` config is set to `true` (default). + Unrecognized format specifiers are treated as ordinary characters. Floating point limitations: