diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-01 08:15:09 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-01 08:15:09 +0000 |
commit | 09b9d8de341c01ad93ca7885d771750fe84419d8 (patch) | |
tree | 2bf87fd191e91f0d460086f662d6f4986440a676 /os/various | |
parent | 74bc33cf80b7b17470c215c158c01c2f2f137c14 (diff) | |
download | ChibiOS-09b9d8de341c01ad93ca7885d771750fe84419d8.tar.gz ChibiOS-09b9d8de341c01ad93ca7885d771750fe84419d8.tar.bz2 ChibiOS-09b9d8de341c01ad93ca7885d771750fe84419d8.zip |
Fixed bug #411.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5782 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r-- | os/various/chprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/chprintf.c b/os/various/chprintf.c index c97ea0cf2..d712b98ab 100644 --- a/os/various/chprintf.c +++ b/os/various/chprintf.c @@ -137,7 +137,7 @@ void chprintf(BaseSequentialStream *chp, const char *fmt, ...) { left_align = TRUE;
}
filler = ' ';
- if (*fmt == '.') {
+ if ((*fmt == '.') || (*fmt == '0')) {
fmt++;
filler = '0';
}
|