Add option for not including the tracing stuff
[fio.git] / init.c
diff --git a/init.c b/init.c
index 7fd38ad8e0c433491b9dcffb79376bc931f66471..721978f6626674cdfbb685ff860576c1bb286af6 100644 (file)
--- a/init.c
+++ b/init.c
@@ -779,6 +779,7 @@ static void usage(const char *name)
        printf("\t          \tMay be \"always\", \"never\" or \"auto\"\n");
 }
 
+#ifdef FIO_INC_DEBUG
 struct debug_level debug_levels[] = {
        { .name = "process",    .shift = FD_PROCESS, },
        { .name = "file",       .shift = FD_FILE, },
@@ -828,6 +829,12 @@ static void set_debug(const char *string)
                        log_err("fio: debug mask %s not found\n", opt);
        }
 }
+#else
+static void set_debug(const char *string)
+{
+       log_err("fio: debug tracing not included in build\n");
+}
+#endif
 
 static int parse_cmd_line(int argc, char *argv[])
 {