[PATCH 7/9] libmisc: Fix printk format warnings.

Chris Johns chrisj at rtems.org
Mon May 23 06:55:46 UTC 2016


---
 cpukit/libmisc/mouse/serial_mouse.c | 2 +-
 cpukit/libmisc/stackchk/check.c     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/libmisc/mouse/serial_mouse.c b/cpukit/libmisc/mouse/serial_mouse.c
index 38f5376..eb993b4 100644
--- a/cpukit/libmisc/mouse/serial_mouse.c
+++ b/cpukit/libmisc/mouse/serial_mouse.c
@@ -169,7 +169,7 @@ rtems_device_driver serial_mouse_control(
   switch( args->command ) {
 
     case MW_UID_REGISTER_DEVICE:
-      printk( "SerialMouse: reg=%s\n", args->buffer );
+      printk( "SerialMouse: reg=%s\n", (const char*) args->buffer );
       mouse_parser_initialize( serial_mouse_type );
       break;
 
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 93d45de..e8e360d 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -446,13 +446,13 @@ static void Stack_check_Dump_threads_usage(
     }
     #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
       else {
-        rtems_printf( printer, "0x%08" PRIx32 "  INTR", ~0 );
+        rtems_printf( printer, "0x%08x  INTR", ~0 );
       }
     #endif
 
   rtems_printf(
     printer,
-    " %010p - %010p %010p  %8" PRId32 "   ",
+    " %p - %p %p  %8" PRId32 "   ",
     stack->area,
     stack->area + stack->size - 1,
     current,
-- 
2.4.6




More information about the devel mailing list