projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6393402
)
registrychunks: Fix format string for debug error message.
author
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 15:05:08 +0000
(16:05 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 15:05:08 +0000
(16:05 +0100)
gst/gstregistrychunks.c
patch
|
blob
|
history
diff --git
a/gst/gstregistrychunks.c
b/gst/gstregistrychunks.c
index
1babcff
..
8fe089d
100644
(file)
--- 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) \
#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; \
goto error_label; \
} \
outptr = (element *) inptr; \