diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-09-26 17:37:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-09-26 17:37:55 +0000 |
commit | 1f5a1afeae4b240356fb72808e5db95a6b767d9c (patch) | |
tree | a210f95251efeaee74aaba1c2eb7a8adc598f0bc /cpukit | |
parent | 2003-09-26 Cedric Aubert <cedric_aubert@yahoo.fr> (diff) | |
download | rtems-1f5a1afeae4b240356fb72808e5db95a6b767d9c.tar.bz2 |
2003-09-26 Till Strauman <strauman@slac.stanford.edu>
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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libcsupport/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/libcsupport/src/printk.c | 1 |
2 files changed, 8 insertions, 0 deletions
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 <strauman@slac.stanford.edu> + + 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 <corsepiu@faw.uni-ulm.de> 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; |