[Bug 745213] New: Shorten __FILE__ in gst_debug_log output on all platforms.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Feb 26 06:21:10 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=745213

            Bug ID: 745213
           Summary: Shorten __FILE__ in gst_debug_log output on all
                    platforms.
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: bugzilla.gnome.org at urbanec.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 297983
  --> https://bugzilla.gnome.org/attachment.cgi?id=297983&action=edit
Patch to shorten __FILE__ on all platforms.

On WIN32 the file argument to gst_debug_log_valist is shortened to represent
just the filename. This is useful not only for MSVC, but also with gcc/Linux
when doing cross-compilation builds and out-of-tree builds.

The attached patch removes the OS check for WIN32 so that the logs are more
legible on all platforms. For example:

0:00:00.294828704 13842   0x53cf20 DEBUG               avidemux
/home/peteru/Source/T3/build-enviroment-core-24/builds/beyonwiz/inihdp/tmp-glibc/work/mips32el-oe-linux/gstreamer1.0-plugins-good/gstreamer1.0-plugins-good-git-r0/git/gst/avi/gstavidemux.c:253:gst_avi_demux_reset:
AVI: reset

becomes

0:00:02.439104406 17590   0x5c8720 DEBUG               avidemux
gstavidemux.c:253:gst_avi_demux_reset: AVI: reset

This also saves a serious amount of bandwidth when debugging target systems
over a serial console.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list