From 084bbe392155654f7be75e302f116fd8a83bd2b1 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 7 Oct 2009 23:36:45 +0300 Subject: [PATCH] info: use a "%s" format string when printing the memory dump line We know that the content is save, but the compiler does not. --- gst/gstinfo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index afe4984..1724aef 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -1645,11 +1645,11 @@ _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, { guint off = 0; - gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, "--------" - "-------------------------------------------------------------------"); + gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, "%s", "-----" + "----------------------------------------------------------------------"); if (msg != NULL && *msg != '\0') { - gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, msg); + gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, "%s", msg); } while (off < length) { @@ -1661,8 +1661,8 @@ _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, off += 16; } - gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, "--------" - "-------------------------------------------------------------------"); + gst_debug_log ((cat), GST_LEVEL_MEMDUMP, file, func, line, obj, "%s", "-----" + "----------------------------------------------------------------------"); } #else /* !GST_DISABLE_GST_DEBUG */ -- 2.7.4