gst/gstinfo.h: Use __FUNCTION__ instead of __PRETTY_FUNCTION__, it's silly to print the entire class/function signatu...

Original commit message from CVS:
* gst/gstinfo.h:
Use __FUNCTION__ instead of __PRETTY_FUNCTION__, it's silly
to print the entire class/function signature into the log
file for C++ code.  This only affects C++ code, for C code
everything remains the same.
This commit is contained in:
Tim-Philipp Müller 2007-10-09 20:45:13 +00:00
parent 9d731d1e11
commit a639f7abfc
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2007-10-09 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstinfo.h:
Use __FUNCTION__ instead of __PRETTY_FUNCTION__, it's silly
to print the entire class/function signature into the log
file for C++ code. This only affects C++ code, for C code
everything remains the same.
2007-10-09 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (remove_from_queue):

View file

@ -215,7 +215,7 @@ struct _GstDebugCategory {
*/
#ifndef GST_FUNCTION
#if defined (__GNUC__)
# define GST_FUNCTION ((const char*) (__PRETTY_FUNCTION__))
# define GST_FUNCTION ((const char*) (__FUNCTION__))
#elif defined (G_HAVE_ISO_VARARGS)
# define GST_FUNCTION ((const char*) (__func__))
#else