summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/printk.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-03 22:27:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-03 22:27:01 +0000
commitdb41bb6784c6f7da698eda25c969082143e65b43 (patch)
tree11a87692f381ac4205491f4f18c1fec16f76ece6 /cpukit/libcsupport/src/printk.c
parent2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-db41bb6784c6f7da698eda25c969082143e65b43.tar.bz2
2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/printk.c: Addresses can be larger than integers so use long for %p formats. * score/inline/rtems/score/address.inl: Offsets can be positive or negative, so use int32_t. Also do math with intptr_t since there are cases where the number of bits in an address do not equal the number of bits in an integer. * score/inline/rtems/score/heap.inl: Offsets can be positive or negative, so use int32_t.
Diffstat (limited to 'cpukit/libcsupport/src/printk.c')
-rw-r--r--cpukit/libcsupport/src/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c
index c42beb4720..9754574c38 100644
--- a/cpukit/libcsupport/src/printk.c
+++ b/cpukit/libcsupport/src/printk.c
@@ -113,7 +113,7 @@ void vprintk(
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 'p': base = 16; sign = 0; lflag = 1; break;
case 's':
{ int i, len;
char *s;