From a6510349d4c79ec43702ee40cda839050ab7f7f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 7 Mar 2007 17:26:49 +0000 Subject: [PATCH] gst/: Remove newlines at end of debug log strings. Original commit message from CVS: * gst/gst.c: (load_plugin_func): * gst/gstplugin.c: (gst_plugin_load_by_name), (gst_plugin_load): * gst/gstregistrybinary.c: (gst_registry_binary_read_cache): * gst/gsttrace.c: (gst_trace_new), (gst_alloc_trace_set_flags_all): Remove newlines at end of debug log strings. --- ChangeLog | 8 ++++++++ gst/gst.c | 2 +- gst/gstplugin.c | 4 ++-- gst/gstregistrybinary.c | 2 +- gst/gsttrace.c | 4 ++-- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0960be5..33ed592 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-03-07 Tim-Philipp Müller + + * gst/gst.c: (load_plugin_func): + * gst/gstplugin.c: (gst_plugin_load_by_name), (gst_plugin_load): + * gst/gstregistrybinary.c: (gst_registry_binary_read_cache): + * gst/gsttrace.c: (gst_trace_new), (gst_alloc_trace_set_flags_all): + Remove newlines at end of debug log strings. + 2007-03-07 Zaheer Abbas Merali * plugins/elements/gstidentity.c: (gst_identity_check_perfect): diff --git a/gst/gst.c b/gst/gst.c index e85076b..a2c8d0a 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -495,7 +495,7 @@ load_plugin_func (gpointer data, gpointer user_data) } else { if (err) { /* Report error to user, and free error */ - GST_ERROR ("Failed to load plugin: %s\n", err->message); + GST_ERROR ("Failed to load plugin: %s", err->message); g_error_free (err); } else { GST_WARNING ("Failed to load plugin: \"%s\"", filename); diff --git a/gst/gstplugin.c b/gst/gstplugin.c index f0c454e..1a77940 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -875,7 +875,7 @@ gst_plugin_load_by_name (const gchar * name) gst_object_unref (plugin); if (!newplugin) { - GST_WARNING ("load_plugin error: %s\n", error->message); + GST_WARNING ("load_plugin error: %s", error->message); g_error_free (error); return NULL; } @@ -921,7 +921,7 @@ gst_plugin_load (GstPlugin * plugin) load_error: { - GST_WARNING ("load_plugin error: %s\n", error->message); + GST_WARNING ("load_plugin error: %s", error->message); g_error_free (error); return NULL; } diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index 5baff61..8982b4a 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -747,7 +747,7 @@ gst_registry_binary_read_cache (GstRegistry * registry, const char *location) mapped = g_mapped_file_new (location, FALSE, &err); if (err != NULL) { - GST_INFO ("Unable to mmap file: %s\n", err->message); + GST_INFO ("Unable to mmap file: %s", err->message); g_error_free (err); return FALSE; } diff --git a/gst/gsttrace.c b/gst/gsttrace.c index 6a32452..cdf3442 100644 --- a/gst/gsttrace.c +++ b/gst/gsttrace.c @@ -111,7 +111,7 @@ gst_trace_new (gchar * filename, gint size) g_return_val_if_fail (trace != NULL, NULL); trace->filename = g_strdup (filename); - GST_DEBUG ("opening '%s'\n", trace->filename); + GST_DEBUG ("opening '%s'", trace->filename); #ifndef S_IWUSR #define S_IWUSR S_IWRITE #endif @@ -407,7 +407,7 @@ gst_alloc_trace_set_flags_all (GstAllocTraceFlags flags) while (walk) { GstAllocTrace *trace = (GstAllocTrace *) walk->data; - GST_DEBUG ("set flags on %p\n", trace); + GST_DEBUG ("setting flags %d on %p", (gint) flags, trace); gst_alloc_trace_set_flags (trace, flags); walk = g_list_next (walk); -- 2.7.4