aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-08 13:33:47 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitdb95653246560c24ad3c8cb224b3d9321b50af0a (patch)
treeabdb6b98405e1f7642fadf8114d198ad86bdf279 /src/util.c
parent11369e6592800fcf03138b109fee3d4c0736f21a (diff)
cpp, simple wrappers for most of what we need, ivi_* still incomplete
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index ee4b7b6..0ce7c27 100644
--- a/src/util.c
+++ b/src/util.c
@@ -53,3 +53,12 @@ void fatal(char const *fmt, ...) {
va_end(a);
abort();
}
+
+#ifdef DEBUG_OUTPUT
+void logdebug(char const *fmt, ...) {
+ va_list a;
+ va_start(a, fmt);
+ log_("debug", stdout, fmt, a);
+ va_end(a);
+}
+#endif