aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/lib')
-rw-r--r--os/hal/lib/streams/chprintf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c
index 737d01341..5875d3e8a 100644
--- a/os/hal/lib/streams/chprintf.c
+++ b/os/hal/lib/streams/chprintf.c
@@ -163,9 +163,8 @@ int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
break;
width = width * 10 + c;
}
- precision = 6;
+ precision = 0;
if (c == '.') {
- precision = 0;
while (TRUE) {
c = *fmt++;
if (c >= '0' && c <= '9')