summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-05-30 22:25:32 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-05-30 22:25:32 +0200
commit69b98d4c9945bed6b3446a9e73bfaf8e557cf033 (patch)
tree1836fb937044b25d064bf944c3eeb3eefa628fad
parentb52ae0af85c640e6e4ebd412a731e9d5f97a6cc8 (diff)
downloadfio-69b98d4c9945bed6b3446a9e73bfaf8e557cf033.tar.gz
fio-69b98d4c9945bed6b3446a9e73bfaf8e557cf033.tar.bz2
Fix build with FIO_INC_DEBUG not included
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--debug.h3
-rw-r--r--init.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/debug.h b/debug.h
index 160f48c3..a9e9e935 100644
--- a/debug.h
+++ b/debug.h
@@ -18,6 +18,8 @@ enum {
FD_DEBUG_MAX,
};
+extern unsigned int fio_debug_jobno, *fio_debug_jobp;
+
#ifdef FIO_INC_DEBUG
struct debug_level {
const char *name;
@@ -27,7 +29,6 @@ struct debug_level {
extern struct debug_level debug_levels[];
extern unsigned long fio_debug;
-extern unsigned int fio_debug_jobno, *fio_debug_jobp;
#define dprint(type, str, args...) \
do { \
diff --git a/init.c b/init.c
index 00eb592b..71fe4be5 100644
--- a/init.c
+++ b/init.c
@@ -916,7 +916,7 @@ static int set_debug(const char *string)
return 0;
}
#else
-static void set_debug(const char *string)
+static int set_debug(const char *string)
{
log_err("fio: debug tracing not included in build\n");
return 1;