[PATCH 03/15] powerpc/shared/.../openpic.c: Fix printf() format warnings.

Joel Sherrill joel at rtems.org
Mon Oct 3 22:58:00 UTC 2016


---
 c/src/lib/libbsp/powerpc/shared/openpic/openpic.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
index 39abcd9..f56bce2 100644
--- a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
+++ b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c
@@ -72,7 +72,7 @@ static          int openpic_src_offst = 0;
 	printk("openpic.c:%d: illegal priority %d\n", __LINE__, pri);
 #define check_arg_irq(irq) \
     if (irq < 0 || irq >= NumSources) \
-	printk("openpic.c:%d: illegal irq %d from 0x%08x,[0x%08x],[[0x%08x]]\n", \
+	printk("openpic.c:%d: illegal irq %d from %p,[%p],[[%p]]\n", \
 	       __LINE__, irq, __builtin_return_address(0), \
 	       __builtin_return_address(1), __builtin_return_address(2) \
 	       );
@@ -234,8 +234,8 @@ void openpic_init(int main_pic, unsigned char *polarities, unsigned char *senses
 		break;
 	}
     }
-    printk("OpenPIC Version %s (%d CPUs and %d IRQ sources) at 0x%08x\n", version,
-	   NumProcessors, NumSources, OpenPIC);
+    printk("OpenPIC Version %s (%d CPUs and %d IRQ sources) at %p\n",
+	   version, NumProcessors, NumSources, OpenPIC);
 
     printk("OpenPIC Vendor %d (%s), Device %d (%s), Stepping %d\n", vendorid,
 	   vendor, devid, device, stepping);
-- 
1.8.3.1




More information about the devel mailing list