X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdebug.c;h=0fceba489d64e90c79178b041830d7e9b1c07f2f;hb=91a1b089097cb3ba66f779df80fa7a51490aa785;hp=af22c69f2cf8626fadf31293dcb1bff9a1a4e6af;hpb=3f2d342de80d819f5a40b6af1e4cc5478429e6be;p=chaz%2Fopenbox diff --git a/openbox/debug.c b/openbox/debug.c index af22c69f..0fceba48 100644 --- a/openbox/debug.c +++ b/openbox/debug.c @@ -35,6 +35,7 @@ void ob_debug(const gchar *a, ...) va_list vl; if (show) { + fprintf(stderr, "DEBUG: "); va_start(vl, a); vfprintf(stderr, a, vl); va_end(vl); @@ -56,6 +57,20 @@ void ob_debug_type(ObDebugType type, const gchar *a, ...) g_assert(type < OB_DEBUG_TYPE_NUM); if (show && enabled_types[type]) { + switch (type) { + case OB_DEBUG_FOCUS: + fprintf(stderr, "FOCUS: "); + break; + case OB_DEBUG_APP_BUGS: + fprintf(stderr, "APPLICATION BUG: "); + break; + case OB_DEBUG_SM: + fprintf(stderr, "SESSION: "); + break; + default: + g_assert_not_reached(); + } + va_start(vl, a); vfprintf(stderr, a, vl); va_end(vl);