remove various useless linefeed in logs

This commit is contained in:
Stéphane Cerveau 2019-12-11 10:47:20 +01:00
parent b18be3562c
commit 6bc0e9527e
26 changed files with 40 additions and 42 deletions

View 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);

View 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);

View 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;
}

View 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)

View 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;
}

View 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

View 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;
}

View 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;
}

View 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;
}

View 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) {

View 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,

View 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,

View 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) {

View 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;
}

View 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),

View 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;
}

View 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;
}

View 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;

View 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;
}

View 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);
}

View 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);

View 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);

View 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);

View 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);

View 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;
}

View 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",