projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
[fio.git]
/
debug.c
diff --git
a/debug.c
b/debug.c
index 2eb3b6f932be7b9fd398beac920e5a928872928e..5e9806335fc630e01da4f8a55c5ed042dd939488 100644
(file)
--- a/
debug.c
+++ b/
debug.c
@@
-3,6
+3,7
@@
#include <unistd.h>
#include "debug.h"
#include <unistd.h>
#include "debug.h"
+#ifdef FIO_INC_DEBUG
void __dprint(int type, const char *str, ...)
{
va_list args;
void __dprint(int type, const char *str, ...)
{
va_list args;
@@
-10,18
+11,16
@@
void __dprint(int type, const char *str, ...)
assert(type < FD_DEBUG_MAX);
assert(type < FD_DEBUG_MAX);
- if ((((1 << type)) & fio_debug) == 0)
- return;
-
pid = getpid();
if (fio_debug_jobp && *fio_debug_jobp != -1U
&& pid != *fio_debug_jobp)
return;
pid = getpid();
if (fio_debug_jobp && *fio_debug_jobp != -1U
&& pid != *fio_debug_jobp)
return;
- log_
info("%-8s ", debug_levels[(type)
].name);
- log_
info
("%-5u ", (int) pid);
+ log_
local("%-8s ", debug_levels[type
].name);
+ log_
local
("%-5u ", (int) pid);
va_start(args, str);
va_start(args, str);
-
vfprintf(f_out,
str, args);
+
log_valist(
str, args);
va_end(args);
}
va_end(args);
}
+#endif