registrychunks: Fix format string for debug error message.
authorJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 15:05:08 +0000 (16:05 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 15:05:08 +0000 (16:05 +0100)
gst/gstregistrychunks.c

index 1babcff..8fe089d 100644 (file)
@@ -63,7 +63,8 @@ _strnlen (const gchar * str, gint maxlen)
 #define unpack_element(inptr, outptr, element, endptr, error_label) G_STMT_START{ \
   if (inptr + sizeof(element) > endptr) { \
     GST_ERROR ("Failed reading element " G_STRINGIFY (element)  \
-        ". Have %d bytes need %d", endptr - inptr, sizeof(element)); \
+        ". Have %" G_GSSIZE_FORMAT " bytes need %" G_GSSIZE_FORMAT, \
+        endptr - inptr, sizeof(element)); \
     goto error_label; \
   } \
   outptr = (element *) inptr; \