mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
info: use a "%s" format string when printing the memory dump line
We know that the content is save, but the compiler does not.
This commit is contained in:
parent
e025e328fd
commit
084bbe3921
1 changed files with 5 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue