Skip to content

Commit 554a04b

Browse files
committed
minimal-printf: README updates
1 parent 30c947e commit 554a04b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

platform/mbed_lib.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@
140140
"value": true
141141
},
142142
"minimal-printf-enable-64-bit": {
143-
"help": "Enable printing 64 bit integers when using mprintf profile",
143+
"help": "Enable printing 64 bit integers when using minimal printf library",
144144
"value": true
145145
},
146146
"minimal-printf-enable-floating-point": {
147-
"help": "Enable floating point printing when using mprintf profile",
147+
"help": "Enable floating point printing when using minimal printf library",
148148
"value": true
149149
},
150150
"minimal-printf-set-floating-point-max-decimals": {
151-
"help": "Maximum number of decimals to be printed",
151+
"help": "Maximum number of decimals to be printed when using minimal printf library",
152152
"value": 6
153153
}
154154
},

platform/source/minimal-printf/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Minimal printf and snprintf
22

33

4-
Library supports both printf and snprintf in 1252 bytes of flash.
4+
Library supports both printf and snprintf in around 1300 bytes of flash.
55

66
Prints directly to stdio/UART without using malloc. All flags and precision modifiers are ignored.
77
There is no error handling if a writing error occurs.
@@ -20,6 +20,10 @@ Supports:
2020
* %s: string.
2121
* %p: pointer (e.g. 0x00123456).
2222

23+
Note that support for:
24+
* 64b modifiers is only present when `minimal-printf-enable-64-bit` config is set to `true` (default).
25+
* Floating point parameters is only present when `minimal-printf-enable-floating-point` config is set to `true` (default).
26+
2327
Unrecognized format specifiers are treated as ordinary characters.
2428

2529
Floating point limitations:

0 commit comments

Comments
 (0)