From b59b2d79daa1fed66792f6ac44b85766bda16c03 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 20 Dec 2015 11:48:16 +0000 Subject: Fixed bug #684. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8626 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/lib/streams/chprintf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'os/hal/lib') diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c index fa2b105a4..99fea6a09 100644 --- a/os/hal/lib/streams/chprintf.c +++ b/os/hal/lib/streams/chprintf.c @@ -136,7 +136,7 @@ int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) { if (c == 0) return n; if (c != '%') { - chSequentialStreamPut(chp, (uint8_t)c); + streamPut(chp, (uint8_t)c); n++; continue; } @@ -254,22 +254,22 @@ unsigned_common: width = -width; if (width < 0) { if (*s == '-' && filler == '0') { - chSequentialStreamPut(chp, (uint8_t)*s++); + streamPut(chp, (uint8_t)*s++); n++; i--; } do { - chSequentialStreamPut(chp, (uint8_t)filler); + streamPut(chp, (uint8_t)filler); n++; } while (++width != 0); } while (--i >= 0) { - chSequentialStreamPut(chp, (uint8_t)*s++); + streamPut(chp, (uint8_t)*s++); n++; } while (width) { - chSequentialStreamPut(chp, (uint8_t)filler); + streamPut(chp, (uint8_t)filler); n++; width--; } -- cgit v1.2.3