[PATCH 06/15] libcpu/powerpc/shared/src/stack.c: Fix printf() format warnings.

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


---
 c/src/lib/libcpu/powerpc/shared/src/stack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libcpu/powerpc/shared/src/stack.c b/c/src/lib/libcpu/powerpc/shared/src/stack.c
index 657ae2f..51ecf35 100644
--- a/c/src/lib/libcpu/powerpc/shared/src/stack.c
+++ b/c/src/lib/libcpu/powerpc/shared/src/stack.c
@@ -36,7 +36,7 @@ void CPU_print_stack(void)
         for (i=0; stck[i]; i++) {
                 if (i%5) printk("--> ");
                 else     printk("\n");
-                printk("0x%08x",stck[i]);
+                printk("%p",stck[i]);
 	}
 	printk("\n");
 }
-- 
1.8.3.1




More information about the devel mailing list