diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2019-12-11 10:47:20 +0100 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2019-12-11 10:51:29 +0100 |
commit | 6bc0e9527e49f16dc78b9d504495ad227e474770 (patch) | |
tree | 644c3cd4b963afd4d85d85b7c2fc183677ce0f3d | |
parent | b18be3562c58d612b719c70fc6142fa18a77537d (diff) | |
download | gstreamer-plugins-bad-6bc0e9527e49f16dc78b9d504495ad227e474770.tar.gz |
remove various useless linefeed in logs
26 files changed, 40 insertions, 42 deletions
diff --git a/ext/curl/gstcurlbasesink.c b/ext/curl/gstcurlbasesink.c index e59366d81..c53fd3080 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 9b41fa944..e5ad044fc 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 93ff780f1..9871c4590 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 8e877e77f..5f5fd1853 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 7364cfa5d..ad3a89cf5 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 912bebef3..9055abfd8 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 6d8dc77b8..c68b2a0b0 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 e3b65075b..0c4b1fb54 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 a8b7c9d56..d4cc61926 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 9e9f0634b..c0b12d044 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 764f44728..b2e318fc3 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 7abe3fa44..b0af0c306 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 865a014ff..2386fa6f6 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 2e6708023..f00726267 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 a3d487734..e69c3f4df 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 2e6fe030a..5992c78c4 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 e3b65075b..0c4b1fb54 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 40eb20cbb..cc51c20a0 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 74679e719..7277bc331 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 578704467..bc9406ece 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 7398003cb..9c26cf2c3 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 9cc0eed3b..45dd06538 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 3a9e8e3f6..b33fda836 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 ab1f23e1d..9e6f988bc 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 59a948fa7..77e2a8e5d 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 bc6d26d1d..03256311e 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", |