Merge branch 'asprintf' of https://github.com/bvanassche/fio
[fio.git] / debug.h
diff --git a/debug.h b/debug.h
index ba62214683769b32a6ab31ac0f543628ce658269..1765fdb61eb06a6518b2d67f9e4a000592dc55b6 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -43,6 +43,7 @@ enum {
        FIO_WARN_VERIFY_BUF     = 2,
        FIO_WARN_ZONED_BUG      = 4,
        FIO_WARN_IOLOG_DROP     = 8,
+       FIO_WARN_FADVISE        = 16,
 };
 
 #ifdef FIO_INC_DEBUG
@@ -52,7 +53,7 @@ struct debug_level {
        unsigned long shift;
        unsigned int jobno;
 };
-extern struct debug_level debug_levels[];
+extern const struct debug_level debug_levels[];
 
 extern unsigned long fio_debug;
 
@@ -60,7 +61,7 @@ void __dprint(int type, const char *str, ...) __attribute__((format (printf, 2,
 
 #define dprint(type, str, args...)                     \
        do {                                            \
-               if ((((1 << type)) & fio_debug) == 0)   \
+               if (((1 << type) & fio_debug) == 0)     \
                        break;                          \
                __dprint((type), (str), ##args);        \
        } while (0)                                     \