examples: fix printf format warning in jsseek example
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 30 Mar 2010 19:21:28 +0000 (20:21 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 30 Mar 2010 19:21:28 +0000 (20:21 +0100)
Yes, I know about G_GSIZE_FORMAT.

tests/examples/seek/jsseek.c

index b1af8cc..16167e4 100644 (file)
@@ -2632,8 +2632,8 @@ read_joystick (GIOChannel * source, GIOCondition condition, gpointer user_data)
   result =
       g_io_channel_read (source, buf, sizeof (struct js_event), &bytes_read);
   if (bytes_read != sizeof (struct js_event)) {
-    g_print ("error reading joystick, read %u bytes of %u\n", bytes_read,
-        sizeof (struct js_event));
+    g_print ("error reading joystick, read %u bytes of %u\n",
+        (guint) bytes_read, (guint) sizeof (struct js_event));
     return TRUE;
   }