summaryrefslogtreecommitdiff
path: root/src/terminal-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-debug.h')
-rw-r--r--src/terminal-debug.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/terminal-debug.h b/src/terminal-debug.h
index 6be1716..1f03ec3 100644
--- a/src/terminal-debug.h
+++ b/src/terminal-debug.h
@@ -25,14 +25,15 @@
G_BEGIN_DECLS
-typedef enum {
- TERMINAL_DEBUG_ACCELS = 1 << 0,
- TERMINAL_DEBUG_ENCODINGS = 1 << 1,
- TERMINAL_DEBUG_FACTORY = 1 << 2,
- TERMINAL_DEBUG_GEOMETRY = 1 << 3,
- TERMINAL_DEBUG_MDI = 1 << 4,
- TERMINAL_DEBUG_PROCESSES = 1 << 5,
- TERMINAL_DEBUG_PROFILE = 1 << 6
+typedef enum
+{
+ TERMINAL_DEBUG_ACCELS = 1 << 0,
+ TERMINAL_DEBUG_ENCODINGS = 1 << 1,
+ TERMINAL_DEBUG_FACTORY = 1 << 2,
+ TERMINAL_DEBUG_GEOMETRY = 1 << 3,
+ TERMINAL_DEBUG_MDI = 1 << 4,
+ TERMINAL_DEBUG_PROCESSES = 1 << 5,
+ TERMINAL_DEBUG_PROFILE = 1 << 6
} TerminalDebugFlags;
void _terminal_debug_init(void);
@@ -43,7 +44,7 @@ static inline gboolean _terminal_debug_on (TerminalDebugFlags flags) G_GNUC_CONS
static inline gboolean
_terminal_debug_on (TerminalDebugFlags flags)
{
- return (_terminal_debug_flags & flags) == flags;
+ return (_terminal_debug_flags & flags) == flags;
}
#ifdef MATE_ENABLE_DEBUG
@@ -60,12 +61,13 @@ _terminal_debug_on (TerminalDebugFlags flags)
#include <glib/gstdio.h>
static void _terminal_debug_print (guint flags, const char *fmt, ...)
{
- if (_terminal_debug_on (flags)) {
- va_list ap;
- va_start (ap, fmt);
- g_vfprintf (stderr, fmt, ap);
- va_end (ap);
- }
+ if (_terminal_debug_on (flags))
+ {
+ va_list ap;
+ va_start (ap, fmt);
+ g_vfprintf (stderr, fmt, ap);
+ va_end (ap);
+ }
}
#endif