From 1f5a1afeae4b240356fb72808e5db95a6b767d9c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 26 Sep 2003 17:37:55 +0000 Subject: 2003-09-26 Till Strauman PR 498/rtems * src/printk.c: RTEMS printk() does not support the %i format which is used by a lot of driver/BSP etc. code. The trivial patch allows %i/%I as an alias for %d/%D. --- cpukit/libcsupport/ChangeLog | 7 +++++++ cpukit/libcsupport/src/printk.c | 1 + 2 files changed, 8 insertions(+) (limited to 'cpukit') diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index e6b6214314..c7427ace52 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,10 @@ +2003-09-26 Till Strauman + + PR 498/rtems + * src/printk.c: RTEMS printk() does not support the %i format which is + used by a lot of driver/BSP etc. code. The trivial patch allows %i/%I + as an alias for %d/%D. + 2003-09-15 Ralf Corsepius PR 489/rtems diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c index 433560a4fc..c227bd79d0 100644 --- a/cpukit/libcsupport/src/printk.c +++ b/cpukit/libcsupport/src/printk.c @@ -109,6 +109,7 @@ vprintk(char *fmt, va_list ap) switch (c) { case 'o': case 'O': base = 8; sign = 0; break; + case 'i': case 'I': case 'd': case 'D': base = 10; sign = 1; break; case 'u': case 'U': base = 10; sign = 0; break; case 'x': case 'X': base = 16; sign = 0; break; -- cgit v1.2.3