2007-04-02 Joel Sherrill <joel@OARcorp.com>

* libcsupport/src/printk.c: Add %p support.
This commit is contained in:
Joel Sherrill
2007-04-02 14:36:01 +00:00
parent 29fd387849
commit a4afa905f6
2 changed files with 5 additions and 8 deletions

View File

@@ -1,3 +1,7 @@
2007-04-02 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/printk.c: Add %p support.
2007-04-02 Joel Sherrill <joel@OARcorp.com>
* libmisc/stackchk/check.c: Add code to check validity of frame pointer

View File

@@ -111,20 +111,13 @@ vprintk(char *fmt, va_list ap)
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;
case 'p': base = 16; sign = 0; break;
case 's':
for (str = va_arg(ap, char *); *str; str++)
BSP_output_char(*str);
break;
case 'c':
#if 0
#if defined(_TMS320C3x) || defined(_TMS320C4x)
BSP_output_char(va_arg(ap, int));
#else
BSP_output_char(va_arg(ap, char));
#endif
#else
BSP_output_char(va_arg(ap, int));
#endif
break;
default:
BSP_output_char(c);