From db41bb6784c6f7da698eda25c969082143e65b43 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Oct 2008 22:27:01 +0000 Subject: 2008-10-03 Joel Sherrill * 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. --- cpukit/libcsupport/src/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/printk.c') 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; -- cgit v1.2.3