aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-19 09:36:31 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-19 09:36:31 +0000
commit78ebf73dcdc6aa09b6f255ac53ceafffa62422c4 (patch)
tree244df75fab5b2b7137c099b50df297e0b6479a42 /os/hal/lib
parent562c0225116b2fae3623e92c54c58675b27b6f40 (diff)
downloadChibiOS-78ebf73dcdc6aa09b6f255ac53ceafffa62422c4.tar.gz
ChibiOS-78ebf73dcdc6aa09b6f255ac53ceafffa62422c4.tar.bz2
ChibiOS-78ebf73dcdc6aa09b6f255ac53ceafffa62422c4.zip
Reverted bug #910.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11342 35acf78f-673a-0410-8e92-d51de3d6d3f4
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')