[rtems commit] fb/fb.c: Include <rtems/inttypes.h> and use PRI constant to fix warning

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


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 12:54:23 2017 -0500

fb/fb.c: Include <rtems/inttypes.h> 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 adc30f1..13ea6bf 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 <pxa255.h>
 #include <bsp.h>
 #include <rtems/libio.h>
+#include <rtems/bspIo.h>
 
+#include <rtems.h>
+#include <rtems/inttypes.h>
 #include <rtems/fb.h>
 #include <rtems/framebuffer.h>
-#include <rtems.h>
 
 #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:




More information about the vc mailing list