From a58702de895dc7ce5154cd1d3b99491a5e1390f9 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 8 Oct 2009 16:05:08 +0100 Subject: [PATCH] registrychunks: Fix format string for debug error message. --- gst/gstregistrychunks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstregistrychunks.c b/gst/gstregistrychunks.c index 1babcff..8fe089d 100644 --- a/gst/gstregistrychunks.c +++ b/gst/gstregistrychunks.c @@ -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; \ -- 2.7.4