remove various useless linefeed in logs
authorStéphane Cerveau <scerveau@collabora.com>
Wed, 11 Dec 2019 09:47:20 +0000 (10:47 +0100)
committerStéphane Cerveau <scerveau@collabora.com>
Wed, 11 Dec 2019 09:51:29 +0000 (10:51 +0100)
26 files changed:
ext/curl/gstcurlbasesink.c
ext/curl/gstcurlhttpsrc.c
ext/fdkaac/gstfdkaacenc.c
ext/kate/gstkatetiger.c
ext/neon/gstneonhttpsrc.c
ext/opencv/gsthanddetect.cpp
ext/openni2/gstopenni2src.cpp
ext/resindvd/gstpesfilter.c
ext/soundtouch/gstbpmdetect.cc
ext/teletextdec/gstteletextdec.c
gst-libs/gst/player/gstplayer.c
gst-libs/gst/transcoder/gsttranscoder.c
gst-libs/gst/uridownloader/gsturidownloader.c
gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m
gst/accurip/gstaccurip.c
gst/autoconvert/gstautovideoconvert.c
gst/mpegdemux/gstpesfilter.c
gst/vmnc/vmncdec.c
sys/msdk/gstmsdkdec.c
sys/uvch264/gstuvch264_mjpgdemux.c
tests/check/elements/curlhttpsrc.c
tests/check/elements/dash_demux.c
tests/check/elements/hls_demux.c
tests/check/elements/mssdemux.c
tests/check/elements/webrtcbin.c
tests/examples/playout.c

index e59366d..c53fd30 100644 (file)
@@ -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);
index 9b41fa9..e5ad044 100644 (file)
@@ -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);
index 93ff780..9871c45 100644 (file)
@@ -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;
   }
index 8e877e7..5f5fd18 100644 (file)
@@ -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)
 
index 7364cfa..ad3a89c 100644 (file)
@@ -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;
 }
index 912bebe..9055abf 100644 (file)
@@ -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
index 6d8dc77..c68b2a0 100644 (file)
@@ -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;
   }
index e3b6507..0c4b1fb 100644 (file)
@@ -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;
   }
 
index a8b7c9d..d4cc619 100644 (file)
@@ -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;
   }
 
index 9e9f063..c0b12d0 100644 (file)
@@ -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) {
index 764f447..b2e318f 100644 (file)
@@ -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,
index 7abe3fa..b0af0c3 100644 (file)
@@ -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,
index 865a014..2386fa6 100644 (file)
@@ -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) {
index 2e67080..f007262 100644 (file)
@@ -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;
 }
index a3d4877..e69c3f4 100644 (file)
@@ -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),
index 2e6fe03..5992c78 100644 (file)
@@ -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;
   }
index e3b6507..0c4b1fb 100644 (file)
@@ -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;
   }
 
index 40eb20c..cc51c20 100644 (file)
@@ -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;
index 74679e7..7277bc3 100644 (file)
@@ -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;
   }
 
index 5787044..bc9406e 100644 (file)
@@ -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);
   }
 
index 7398003..9c26cf2 100644 (file)
@@ -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);
index 9cc0eed..45dd065 100644 (file)
@@ -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);
index 3a9e8e3..b33fda8 100644 (file)
@@ -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);
index ab1f23e..9e6f988 100644 (file)
@@ -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);
index 59a948f..77e2a8e 100644 (file)
@@ -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;
     }
index bc6d26d..0325631 100644 (file)
@@ -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",