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.
This commit is contained in:
Joel Sherrill
2003-09-26 17:37:55 +00:00
parent e9051435e8
commit 1f5a1afeae
2 changed files with 8 additions and 0 deletions

View File

@@ -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> 2003-09-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 489/rtems PR 489/rtems

View File

@@ -109,6 +109,7 @@ vprintk(char *fmt, va_list ap)
switch (c) switch (c)
{ {
case 'o': case 'O': base = 8; sign = 0; break; case 'o': case 'O': base = 8; sign = 0; break;
case 'i': case 'I':
case 'd': case 'D': base = 10; sign = 1; break; case 'd': case 'D': base = 10; sign = 1; break;
case 'u': case 'U': base = 10; sign = 0; break; case 'u': case 'U': base = 10; sign = 0; break;
case 'x': case 'X': base = 16; sign = 0; break; case 'x': case 'X': base = 16; sign = 0; break;