diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-02 14:36:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-02 14:36:01 +0000 |
commit | a4afa905f6818c1a8ab07a0f650896e1b29f8875 (patch) | |
tree | 89ced55b2856b2f6e9c02fd2c21b2aa94a91b5d3 /cpukit/libcsupport | |
parent | 2007-04-02 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-a4afa905f6818c1a8ab07a0f650896e1b29f8875.tar.bz2 |
2007-04-02 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/printk.c: Add %p support.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/printk.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c index 4ce64153b9..a3926f2fc8 100644 --- a/cpukit/libcsupport/src/printk.c +++ b/cpukit/libcsupport/src/printk.c @@ -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); |