From 62cba156f63d96e816b94881fdfef0307f42fd36 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 23 May 2016 15:29:30 +1000 Subject: libmisc: Fix printk format warnings. --- cpukit/libmisc/mouse/serial_mouse.c | 2 +- cpukit/libmisc/stackchk/check.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libmisc') diff --git a/cpukit/libmisc/mouse/serial_mouse.c b/cpukit/libmisc/mouse/serial_mouse.c index 38f5376636..eb993b419e 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 93d45de77c..e8e360de15 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, -- cgit v1.2.3