[rtems commit] beatnik/startup/bspstart.c: Fix printf() format warnings

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    c44a740222685159febd856199d508bbbdc0823d
Changeset: http://git.rtems.org/rtems/commit/?id=c44a740222685159febd856199d508bbbdc0823d

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 20:04:19 2017 -0500

beatnik/startup/bspstart.c: Fix printf() format warnings

---

 c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c b/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c
index 989cd7b..b6ac232 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c
@@ -373,7 +373,7 @@ void bsp_start( void )
   BSP_timers_initialize();
 
 #ifdef SHOW_MORE_INIT_SETTINGS
-  printk("MSR %x \n", _read_MSR());
+  printk("MSR 0x%lx \n", _read_MSR());
   printk("Exit from bspstart\n");
 #endif
 }




More information about the vc mailing list