summaryrefslogtreecommitdiffstats
path: root/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/logging.c b/logging.c
index f2f3d50..c90b1cf 100644
--- a/logging.c
+++ b/logging.c
@@ -42,12 +42,14 @@ void logmsg(int prio, const char *fmt, ...) {
* fmt - printf format specifier
* ... - printf format arguments
*/
-void logmsg_dbg(int prio, const char *fmt, ...) {
#if CLAT_DEBUG
+void logmsg_dbg(int prio, const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
__android_log_vprint(prio, "clatd", fmt, ap);
va_end(ap);
-#endif
}
+#else
+void logmsg_dbg(__attribute__((unused)) int prio, __attribute__((unused)) const char *fmt, ...) {}
+#endif