diff --git a/ext/curl/gstcurlbasesink.c b/ext/curl/gstcurlbasesink.c index e59366d818..c53fd30806 100644 --- a/ext/curl/gstcurlbasesink.c +++ b/ext/curl/gstcurlbasesink.c @@ -901,7 +901,7 @@ gst_curl_base_sink_transfer_check (GstCurlBaseSink * sink) } if (easy) { curl_easy_getinfo (easy, CURLINFO_EFFECTIVE_URL, &eff_url); - GST_DEBUG ("transfer done %s (%s-%d)\n", eff_url, + GST_DEBUG ("transfer done %s (%s-%d)", eff_url, curl_easy_strerror (code), code); } } while (easy); diff --git a/ext/curl/gstcurlhttpsrc.c b/ext/curl/gstcurlhttpsrc.c index 9b41fa944a..e5ad044fc0 100644 --- a/ext/curl/gstcurlhttpsrc.c +++ b/ext/curl/gstcurlhttpsrc.c @@ -2063,7 +2063,7 @@ gst_curl_http_src_get_chunks (void *chunk, size_t size, size_t nmemb, void *src) s->buffer = g_realloc (s->buffer, (s->buffer_len + chunk_len + 1) * sizeof (char)); if (s->buffer == NULL) { - GST_ERROR_OBJECT (s, "Realloc for cURL response message failed!\n"); + GST_ERROR_OBJECT (s, "Realloc for cURL response message failed!"); return 0; } memcpy (s->buffer + s->buffer_len, chunk, chunk_len); diff --git a/ext/fdkaac/gstfdkaacenc.c b/ext/fdkaac/gstfdkaacenc.c index 93ff780f1e..9871c45906 100644 --- a/ext/fdkaac/gstfdkaacenc.c +++ b/ext/fdkaac/gstfdkaacenc.c @@ -348,20 +348,20 @@ gst_fdkaacenc_set_format (GstAudioEncoder * enc, GstAudioInfo * info) err = aacEncOpen (&self->enc, 0, GST_AUDIO_INFO_CHANNELS (info)); if (err != AACENC_OK) { - GST_ERROR_OBJECT (self, "Unable to open encoder: %d\n", err); + GST_ERROR_OBJECT (self, "Unable to open encoder: %d", err); return FALSE; } aot = AOT_AAC_LC; if ((err = aacEncoder_SetParam (self->enc, AACENC_AOT, aot)) != AACENC_OK) { - GST_ERROR_OBJECT (self, "Unable to set AOT %d: %d\n", aot, err); + GST_ERROR_OBJECT (self, "Unable to set AOT %d: %d", aot, err); return FALSE; } if ((err = aacEncoder_SetParam (self->enc, AACENC_SAMPLERATE, GST_AUDIO_INFO_RATE (info))) != AACENC_OK) { - GST_ERROR_OBJECT (self, "Unable to set sample rate %d: %d\n", + GST_ERROR_OBJECT (self, "Unable to set sample rate %d: %d", GST_AUDIO_INFO_RATE (info), err); return FALSE; } diff --git a/ext/kate/gstkatetiger.c b/ext/kate/gstkatetiger.c index 8e877e77fa..5f5fd18531 100644 --- a/ext/kate/gstkatetiger.c +++ b/ext/kate/gstkatetiger.c @@ -88,14 +88,14 @@ GST_DEBUG_CATEGORY_EXTERN (gst_katetiger_debug); #define GST_KATE_TIGER_MUTEX_LOCK(element) \ do { \ - /*GST_LOG_OBJECT ((element), "locking from %s:%d\n",__FILE__,__LINE__);*/ \ + /*GST_LOG_OBJECT ((element), "locking from %s:%d",__FILE__,__LINE__);*/ \ g_mutex_lock ((element)->mutex); \ - /*GST_LOG_OBJECT ((element), "ready from %s:%d\n",__FILE__,__LINE__);*/ \ + /*GST_LOG_OBJECT ((element), "ready from %s:%d",__FILE__,__LINE__);*/ \ } while(0) #define GST_KATE_TIGER_MUTEX_UNLOCK(element) \ do { \ - /*GST_LOG_OBJECT ((element), "unlocking from %s:%d\n",__FILE__,__LINE__);*/ \ + /*GST_LOG_OBJECT ((element), "unlocking from %s:%d",__FILE__,__LINE__);*/ \ g_mutex_unlock ((element)->mutex); \ } while(0) diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 7364cfa5dc..ad3a89cf5a 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -817,7 +817,7 @@ ssl_verify_callback (void *data, int failures, const ne_ssl_certificate * cert) GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), ("Server certificate signer not trusted")); - GST_DEBUG_OBJECT (src, "failures: %d\n", failures); + GST_DEBUG_OBJECT (src, "failures: %d", failures); return failures; } diff --git a/ext/opencv/gsthanddetect.cpp b/ext/opencv/gsthanddetect.cpp index 912bebef35..9055abfd87 100644 --- a/ext/opencv/gsthanddetect.cpp +++ b/ext/opencv/gsthanddetect.cpp @@ -507,7 +507,7 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform, Point c; if (filter->display) { - GST_DEBUG_OBJECT (filter, "%d PALM gestures detected\n", + GST_DEBUG_OBJECT (filter, "%d PALM gestures detected", (int) hands.size ()); } /* Go through all detected PALM gestures to get the best one diff --git a/ext/openni2/gstopenni2src.cpp b/ext/openni2/gstopenni2src.cpp index 6d8dc77b83..c68b2a0b05 100644 --- a/ext/openni2/gstopenni2src.cpp +++ b/ext/openni2/gstopenni2src.cpp @@ -302,7 +302,7 @@ gst_openni2_src_start (GstBaseSrc * bsrc) if (src->depth->isValid ()) { rc = src->depth->start (); if (rc != openni::STATUS_OK) { - GST_ERROR_OBJECT (src, "Couldn't start the depth stream\n%s\n", + GST_ERROR_OBJECT (src, "Couldn't start the depth stream: %s", openni::OpenNI::getExtendedError ()); return FALSE; } @@ -311,7 +311,7 @@ gst_openni2_src_start (GstBaseSrc * bsrc) if (src->color->isValid ()) { rc = src->color->start (); if (rc != openni::STATUS_OK) { - GST_ERROR_OBJECT (src, "Couldn't start the color stream\n%s\n", + GST_ERROR_OBJECT (src, "Couldn't start the color stream: %s", openni::OpenNI::getExtendedError ()); return FALSE; } @@ -577,7 +577,7 @@ openni2_initialise_devices (GstOpenni2Src * src) } if (!src->depth->isValid () && !src->color->isValid ()) { - GST_ERROR_OBJECT (src, "No valid streams. Exiting\n"); + GST_ERROR_OBJECT (src, "No valid streams. Exiting"); openni::OpenNI::shutdown (); return FALSE; } diff --git a/ext/resindvd/gstpesfilter.c b/ext/resindvd/gstpesfilter.c index e3b65075ba..0c4b1fb549 100644 --- a/ext/resindvd/gstpesfilter.c +++ b/ext/resindvd/gstpesfilter.c @@ -452,7 +452,7 @@ gst_pes_filter_parse (GstPESFilter * filter) datalen--; } else { /* Data byte wasn't recognised as a flags byte */ - GST_DEBUG ("Unrecognised flags byte 0x%02x\n", *data); + GST_DEBUG ("Unrecognised flags byte 0x%02x", *data); goto lost_sync; } diff --git a/ext/soundtouch/gstbpmdetect.cc b/ext/soundtouch/gstbpmdetect.cc index a8b7c9d56a..d4cc619266 100644 --- a/ext/soundtouch/gstbpmdetect.cc +++ b/ext/soundtouch/gstbpmdetect.cc @@ -258,7 +258,7 @@ gst_bpm_detect_transform_ip (GstBaseTransform * trans, GstBuffer * in) bpm, (void *) NULL); gst_pad_push_event (trans->srcpad, gst_event_new_tag (tags)); - GST_INFO_OBJECT (bpm_detect, "Detected BPM: %lf\n", bpm); + GST_INFO_OBJECT (bpm_detect, "Detected BPM: %lf", bpm); bpm_detect->bpm = bpm; } diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index 9e9f0634bc..c0b12d0441 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -1062,7 +1062,7 @@ gst_teletextdec_extract_data_units (GstTeletextDec * teletext, data_unit = packet + *offset; data_unit_id = data_unit[0]; data_unit_length = data_unit[1]; - GST_LOG_OBJECT (teletext, "vbi header %02x %02x %02x\n", data_unit[0], + GST_LOG_OBJECT (teletext, "vbi header %02x %02x %02x", data_unit[0], data_unit[1], data_unit[2]); switch (data_unit_id) { diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c index 764f44728a..b2e318fc35 100644 --- a/gst-libs/gst/player/gstplayer.c +++ b/gst-libs/gst/player/gstplayer.c @@ -1190,9 +1190,9 @@ error_cb (G_GNUC_UNUSED GstBus * bus, GstMessage * msg, gpointer user_data) g_strdup_printf ("Error from element %s: %s\n%s", name, message, err->message); - GST_ERROR_OBJECT (self, "ERROR: from element %s: %s\n", name, err->message); + GST_ERROR_OBJECT (self, "ERROR: from element %s: %s", name, err->message); if (debug != NULL) - GST_ERROR_OBJECT (self, "Additional debug info:\n%s\n", debug); + GST_ERROR_OBJECT (self, "Additional debug info: %s", debug); player_err = g_error_new_literal (GST_PLAYER_ERROR, GST_PLAYER_ERROR_FAILED, @@ -1229,10 +1229,9 @@ warning_cb (G_GNUC_UNUSED GstBus * bus, GstMessage * msg, gpointer user_data) g_strdup_printf ("Warning from element %s: %s\n%s", name, message, err->message); - GST_WARNING_OBJECT (self, "WARNING: from element %s: %s\n", name, - err->message); + GST_WARNING_OBJECT (self, "WARNING: from element %s: %s", name, err->message); if (debug != NULL) - GST_WARNING_OBJECT (self, "Additional debug info:\n%s\n", debug); + GST_WARNING_OBJECT (self, "Additional debug info: %s", debug); player_err = g_error_new_literal (GST_PLAYER_ERROR, GST_PLAYER_ERROR_FAILED, diff --git a/gst-libs/gst/transcoder/gsttranscoder.c b/gst-libs/gst/transcoder/gsttranscoder.c index 7abe3fa44d..b0af0c306c 100644 --- a/gst-libs/gst/transcoder/gsttranscoder.c +++ b/gst-libs/gst/transcoder/gsttranscoder.c @@ -684,10 +684,9 @@ warning_cb (G_GNUC_UNUSED GstBus * bus, GstMessage * msg, gpointer user_data) g_strdup_printf ("Warning from element %s: %s\n%s", name, message, err->message); - GST_WARNING_OBJECT (self, "WARNING: from element %s: %s\n", name, - err->message); + GST_WARNING_OBJECT (self, "WARNING: from element %s: %s", name, err->message); if (debug != NULL) - GST_WARNING_OBJECT (self, "Additional debug info:\n%s\n", debug); + GST_WARNING_OBJECT (self, "Additional debug info: %s", debug); transcoder_err = g_error_new_literal (GST_TRANSCODER_ERROR, GST_TRANSCODER_ERROR_FAILED, diff --git a/gst-libs/gst/uridownloader/gsturidownloader.c b/gst-libs/gst/uridownloader/gsturidownloader.c index 865a014ffd..2386fa6f6e 100644 --- a/gst-libs/gst/uridownloader/gsturidownloader.c +++ b/gst-libs/gst/uridownloader/gsturidownloader.c @@ -237,7 +237,7 @@ gst_uri_downloader_bus_handler (GstBus * bus, GST_WARNING_OBJECT (downloader, "Received error: %s from %s, the download will be cancelled", err->message, GST_OBJECT_NAME (message->src)); - GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); + GST_DEBUG ("Debugging info: %s", (dbg_info) ? dbg_info : "none"); if (dbg_info) new_error = g_strdup_printf ("%s: %s\n", err->message, dbg_info); @@ -274,7 +274,7 @@ gst_uri_downloader_bus_handler (GstBus * bus, GST_WARNING_OBJECT (downloader, "Received warning: %s from %s", GST_OBJECT_NAME (message->src), err->message); - GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); + GST_DEBUG ("Debugging info: %s", (dbg_info) ? dbg_info : "none"); g_error_free (err); g_free (dbg_info); } else if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_NEED_CONTEXT) { diff --git a/gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m b/gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m index 2e6708023e..f007262671 100644 --- a/gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m +++ b/gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m @@ -328,7 +328,7 @@ gst_vulkan_window_cocoa_close (GstVulkanWindow * window) GstVulkanWindowCocoaPrivate *priv = GET_PRIV (window_cocoa); GstVulkanNSWindow *internal_win_id = (__bridge GstVulkanNSWindow *)priv->internal_win_id; - GST_DEBUG ("user clicked the close button\n"); + GST_DEBUG ("user clicked the close button"); [internal_win_id setClosed]; return YES; } diff --git a/gst/accurip/gstaccurip.c b/gst/accurip/gstaccurip.c index a3d4877342..e69c3f4dfe 100644 --- a/gst/accurip/gstaccurip.c +++ b/gst/accurip/gstaccurip.c @@ -186,7 +186,7 @@ gst_accurip_emit_tags (GstAccurip * accurip) tags = gst_tag_list_new (GST_TAG_ACCURIP_CRC, accurip->crc, GST_TAG_ACCURIP_CRC_V2, accurip->crc_v2, NULL); - GST_DEBUG_OBJECT (accurip, "Computed CRC=%08X and CRCv2=0x%08X \n", + GST_DEBUG_OBJECT (accurip, "Computed CRC=%08X and CRCv2=0x%08X", accurip->crc, accurip->crc_v2); gst_pad_push_event (GST_BASE_TRANSFORM_SRC_PAD (accurip), diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c index 2e6fe030ab..5992c78c47 100644 --- a/gst/autoconvert/gstautovideoconvert.c +++ b/gst/autoconvert/gstautovideoconvert.c @@ -75,7 +75,7 @@ gst_auto_video_convert_element_filter (GstPluginFeature * feature, if (strstr (klass, "Filter") && strstr (klass, "Converter") && strstr (klass, "Video")) { GST_DEBUG_OBJECT (autovideoconvert, - "gst_auto_video_convert_element_filter found %s\n", + "gst_auto_video_convert_element_filter found %s", gst_plugin_feature_get_name (GST_PLUGIN_FEATURE_CAST (feature))); return TRUE; } diff --git a/gst/mpegdemux/gstpesfilter.c b/gst/mpegdemux/gstpesfilter.c index e3b65075ba..0c4b1fb549 100644 --- a/gst/mpegdemux/gstpesfilter.c +++ b/gst/mpegdemux/gstpesfilter.c @@ -452,7 +452,7 @@ gst_pes_filter_parse (GstPESFilter * filter) datalen--; } else { /* Data byte wasn't recognised as a flags byte */ - GST_DEBUG ("Unrecognised flags byte 0x%02x\n", *data); + GST_DEBUG ("Unrecognised flags byte 0x%02x", *data); goto lost_sync; } diff --git a/gst/vmnc/vmncdec.c b/gst/vmnc/vmncdec.c index 40eb20cbb1..cc51c20a0e 100644 --- a/gst/vmnc/vmncdec.c +++ b/gst/vmnc/vmncdec.c @@ -835,7 +835,7 @@ vmnc_handle_packet (GstVMncDec * dec, const guint8 * data, int len, read = handler (dec, &r, data + offset + 12, len - offset - 12, decode); if (read < 0) { - GST_DEBUG_OBJECT (dec, "Error calling rectangle handler\n"); + GST_DEBUG_OBJECT (dec, "Error calling rectangle handler"); return read; } offset += 12 + read; diff --git a/sys/msdk/gstmsdkdec.c b/sys/msdk/gstmsdkdec.c index 74679e719e..7277bc331c 100644 --- a/sys/msdk/gstmsdkdec.c +++ b/sys/msdk/gstmsdkdec.c @@ -497,7 +497,7 @@ gst_msdkdec_set_src_caps (GstMsdkDec * thiz, gboolean need_allocation) FrameInfo.FourCC); if (format == GST_VIDEO_FORMAT_UNKNOWN) { - GST_WARNING_OBJECT (thiz, "Failed to find a valid video format\n"); + GST_WARNING_OBJECT (thiz, "Failed to find a valid video format"); return FALSE; } diff --git a/sys/uvch264/gstuvch264_mjpgdemux.c b/sys/uvch264/gstuvch264_mjpgdemux.c index 5787044675..bc9406ecef 100644 --- a/sys/uvch264/gstuvch264_mjpgdemux.c +++ b/sys/uvch264/gstuvch264_mjpgdemux.c @@ -395,7 +395,7 @@ _pts_to_timestamp (GstUvcH264MjpgDemux * self, GstBuffer * buf, guint32 pts) current_sample->host_ts, GST_TIME_ARGS (current_sample->host_ts)); GST_DEBUG_OBJECT (self, "host_sof: %u", sample.host_sof); GST_DEBUG_OBJECT (self, "PTS: %u", pts); - GST_DEBUG_OBJECT (self, "Diff: %u - %f\n", sample.dev_stc - pts, + GST_DEBUG_OBJECT (self, "Diff: %u - %f", sample.dev_stc - pts, (gdouble) (sample.dev_stc - pts) / sample.dev_frequency); } diff --git a/tests/check/elements/curlhttpsrc.c b/tests/check/elements/curlhttpsrc.c index 7398003cbf..9c26cf2c38 100644 --- a/tests/check/elements/curlhttpsrc.c +++ b/tests/check/elements/curlhttpsrc.c @@ -139,7 +139,7 @@ do_get (GioHttpServer * server, const HttpRequest * req, GOutputStream * out) } g_string_append (s, "\r\n"); - GST_DEBUG ("Response headers: %lu\n%s\n********\n", s->len, s->str); + GST_DEBUG ("Response headers: %lu\n%s\n********", s->len, s->str); g_output_stream_write_all (out, s->str, s->len, &written, NULL, NULL); fail_if (written != s->len); g_string_free (s, TRUE); diff --git a/tests/check/elements/dash_demux.c b/tests/check/elements/dash_demux.c index 9cc0eed3b1..45dd06538d 100644 --- a/tests/check/elements/dash_demux.c +++ b/tests/check/elements/dash_demux.c @@ -831,7 +831,7 @@ testDownloadErrorMessageCallback (GstAdaptiveDemuxTestEngine * engine, fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); gst_message_parse_error (msg, &err, &dbg_info); - GST_DEBUG ("Error from element %s : %s\n", + GST_DEBUG ("Error from element %s : %s", GST_OBJECT_NAME (msg->src), err->message); fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME); g_error_free (err); diff --git a/tests/check/elements/hls_demux.c b/tests/check/elements/hls_demux.c index 3a9e8e3f6b..b33fda836a 100644 --- a/tests/check/elements/hls_demux.c +++ b/tests/check/elements/hls_demux.c @@ -543,7 +543,7 @@ testDownloadErrorMessageCallback (GstAdaptiveDemuxTestEngine * engine, fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); gst_message_parse_error (msg, &err, &dbg_info); - GST_DEBUG ("Error from element %s : %s\n", + GST_DEBUG ("Error from element %s : %s", GST_OBJECT_NAME (msg->src), err->message); fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME); g_error_free (err); diff --git a/tests/check/elements/mssdemux.c b/tests/check/elements/mssdemux.c index ab1f23e1dd..9e6f988bc9 100644 --- a/tests/check/elements/mssdemux.c +++ b/tests/check/elements/mssdemux.c @@ -363,10 +363,10 @@ testDownloadErrorMessageCallback (GstAdaptiveDemuxTestEngine * engine, fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); gst_message_parse_error (msg, &err, &dbg_info); - GST_DEBUG ("Error from element %s : %s\n", + GST_DEBUG ("Error from element %s : %s", GST_OBJECT_NAME (msg->src), err->message); fail_unless_equals_string (GST_OBJECT_NAME (msg->src), DEMUX_ELEMENT_NAME); - /*GST_DEBUG ("dbg_info=%s\n", dbg_info); */ + /*GST_DEBUG ("dbg_info=%s", dbg_info); */ g_error_free (err); g_free (dbg_info); g_main_loop_quit (engine->loop); diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c index 59a948fa75..77e2a8e5db 100644 --- a/tests/check/elements/webrtcbin.c +++ b/tests/check/elements/webrtcbin.c @@ -306,9 +306,9 @@ _bus_watch (GstBus * bus, GstMessage * msg, struct test_webrtc *t) } gst_message_parse_error (msg, &err, &dbg_info); - GST_WARNING ("ERROR from element %s: %s\n", + GST_WARNING ("ERROR from element %s: %s", GST_OBJECT_NAME (msg->src), err->message); - GST_WARNING ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); + GST_WARNING ("Debugging info: %s", (dbg_info) ? dbg_info : "none"); g_error_free (err); g_free (dbg_info); test_webrtc_signal_state_unlocked (t, STATE_ERROR); @@ -326,7 +326,7 @@ _bus_watch (GstBus * bus, GstMessage * msg, struct test_webrtc *t) GST_DEBUG_GRAPH_SHOW_ALL, dump_name); g_free (dump_name); } - GST_INFO ("EOS received\n"); + GST_INFO ("EOS received"); test_webrtc_signal_state_unlocked (t, STATE_EOS); break; } diff --git a/tests/examples/playout.c b/tests/examples/playout.c index bc6d26d1dc..03256311e4 100644 --- a/tests/examples/playout.c +++ b/tests/examples/playout.c @@ -863,7 +863,7 @@ playout_app_activate_item (PlayoutItem * item) * fit within the output video size without any cropping */ gst_video_sink_center_rect (item->video_irect, item->app->video_orect, &item->video_orect, TRUE); - GST_DEBUG ("%s: w: %i, h: %i, x: %i, y: %i\n", item->fn, + GST_DEBUG ("%s: w: %i, h: %i, x: %i, y: %i", item->fn, item->video_orect.w, item->video_orect.h, item->video_orect.x, item->video_orect.y); g_object_set (sinkpad, "width", item->video_orect.w, "height",