mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
changed debug so it always prints pid and cid in color
Original commit message from CVS: changed debug so it always prints pid and cid in color
This commit is contained in:
parent
5dd20aa4a5
commit
0d34adb92c
1 changed files with 6 additions and 2 deletions
|
@ -280,7 +280,9 @@ gst_default_info_handler (gint category, gboolean incore,gchar *file, gchar *fun
|
||||||
if (element && GST_IS_ELEMENT (element))
|
if (element && GST_IS_ELEMENT (element))
|
||||||
elementname = g_strdup_printf (" \033[04m[%s]\033[00m", GST_OBJECT_NAME (element));
|
elementname = g_strdup_printf (" \033[04m[%s]\033[00m", GST_OBJECT_NAME (element));
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef GST_DEBUG_ENABLED
|
#ifdef GST_DEBUG_ENABLED
|
||||||
|
*/
|
||||||
#ifdef GST_DEBUG_COLOR
|
#ifdef GST_DEBUG_COLOR
|
||||||
fprintf(stderr,"\033[01mINFO\033[00m (\033[00;%dm%5d\033[00m:\033[00;%dm%2d\033[00m)\033["
|
fprintf(stderr,"\033[01mINFO\033[00m (\033[00;%dm%5d\033[00m:\033[00;%dm%2d\033[00m)\033["
|
||||||
GST_DEBUG_CHAR_MODE ";%sm%s%s\033[00m %s\n",
|
GST_DEBUG_CHAR_MODE ";%sm%s%s\033[00m %s\n",
|
||||||
|
@ -289,7 +291,8 @@ gst_default_info_handler (gint category, gboolean incore,gchar *file, gchar *fun
|
||||||
#else
|
#else
|
||||||
fprintf(stderr,"INFO (%5d:%2d)%s%s %s\n",
|
fprintf(stderr,"INFO (%5d:%2d)%s%s %s\n",
|
||||||
pthread_id,cothread_id,location,elementname,string);
|
pthread_id,cothread_id,location,elementname,string);
|
||||||
#endif /* GST_DEBUG_COLOR */
|
#endif // GST_DEBUG_COLOR
|
||||||
|
/*
|
||||||
#else
|
#else
|
||||||
#ifdef GST_DEBUG_COLOR
|
#ifdef GST_DEBUG_COLOR
|
||||||
fprintf(stderr,"\033[01mINFO\033[00m:\033[" GST_DEBUG_CHAR_MODE ";%sm%s%s\033[00m %s\n",
|
fprintf(stderr,"\033[01mINFO\033[00m:\033[" GST_DEBUG_CHAR_MODE ";%sm%s%s\033[00m %s\n",
|
||||||
|
@ -297,8 +300,9 @@ gst_default_info_handler (gint category, gboolean incore,gchar *file, gchar *fun
|
||||||
#else
|
#else
|
||||||
fprintf(stderr,"INFO:%s%s %s\n",
|
fprintf(stderr,"INFO:%s%s %s\n",
|
||||||
location,elementname,string);
|
location,elementname,string);
|
||||||
#endif /* GST_DEBUG_COLOR */
|
#endif // GST_DEBUG_COLOR
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
if (location != empty) g_free(location);
|
if (location != empty) g_free(location);
|
||||||
if (elementname != empty) g_free(elementname);
|
if (elementname != empty) g_free(elementname);
|
||||||
|
|
Loading…
Reference in a new issue