projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add/correct missing command line options in help text
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 4f2dc8f6cfd322421b8ba09cda67480d7b10e96e..67f0badf8cb690d0b2940038157d19745b7075f0 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-982,6
+982,7
@@
enum {
FD_DEBUG_MAX,
};
FD_DEBUG_MAX,
};
+#ifdef FIO_INC_DEBUG
struct debug_level {
const char *name;
unsigned long shift;
struct debug_level {
const char *name;
unsigned long shift;
@@
-989,6
+990,7
@@
struct debug_level {
extern struct debug_level debug_levels[];
extern unsigned long fio_debug;
extern struct debug_level debug_levels[];
extern unsigned long fio_debug;
+
#define dprint(type, str, args...) \
do { \
assert(type < FD_DEBUG_MAX); \
#define dprint(type, str, args...) \
do { \
assert(type < FD_DEBUG_MAX); \
@@
-1011,5
+1013,9
@@
static inline void dprint_io_u(struct io_u *io_u, const char *p)
log_info("\n");
}
}
log_info("\n");
}
}
+#else
+#define dprint(type, str, args...)
+#define dprint_io_u(io_u, p)
+#endif
#endif
#endif