init: fix compile for FIO_INC_DEBUG not being set
authorJens Axboe <axboe@fb.com>
Thu, 21 Jan 2016 04:17:55 +0000 (21:17 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 21 Jan 2016 04:17:55 +0000 (21:17 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c

diff --git a/init.c b/init.c
index 98c53edd77070276605cdbfead1116725cbe9274..5ee408239eee29cf0942773a2bcd760bde2a2a80 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1860,6 +1860,7 @@ static int fill_def_thread(void)
 
 static void show_debug_categories(void)
 {
+#ifdef FIO_INC_DEBUG
        struct debug_level *dl = &debug_levels[0];
        int curlen, first = 1;
 
@@ -1885,6 +1886,7 @@ static void show_debug_categories(void)
                first = 0;
        }
        printf("\n");
+#endif
 }
 
 static void usage(const char *name)