From 90033411cab927e13d470b7d2b38540a9ba79a24 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 23 Apr 2017 12:54:23 -0500 Subject: fb/fb.c: Include and use PRI constant to fix warning --- c/src/lib/libbsp/arm/gumstix/fb/fb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/arm/gumstix/fb/fb.c b/c/src/lib/libbsp/arm/gumstix/fb/fb.c index adc30f13a9..13ea6bfcd9 100644 --- a/c/src/lib/libbsp/arm/gumstix/fb/fb.c +++ b/c/src/lib/libbsp/arm/gumstix/fb/fb.c @@ -15,10 +15,12 @@ #include #include #include +#include +#include +#include #include #include -#include #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 @@ -205,7 +207,10 @@ frame_buffer_control( rtems_device_major_number major, ) { rtems_libio_ioctl_args_t *args = arg; - printk( "FBSKYEYE ioctl called, cmd=%x\n", args->command ); + printk( + "FBSKYEYE ioctl called, cmd=%" PRIdioctl_command_t "\n", + args->command + ); switch( args->command ) { case FBIOGET_FSCREENINFO: -- cgit v1.2.3