projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gettime: slightly improve CPU clock calibration
[fio.git]
/
debug.c
diff --git
a/debug.c
b/debug.c
index 5e9806335fc630e01da4f8a55c5ed042dd939488..d1e2987ba3e7c1004487bcacd858ade03944a12a 100644
(file)
--- a/
debug.c
+++ b/
debug.c
@@
-1,26
+1,18
@@
+#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
-#include <sys/types.h>
-#include <unistd.h>
+
#include "debug.h"
#include "debug.h"
+#include "log.h"
#ifdef FIO_INC_DEBUG
void __dprint(int type, const char *str, ...)
{
va_list args;
#ifdef FIO_INC_DEBUG
void __dprint(int type, const char *str, ...)
{
va_list args;
- pid_t pid;
assert(type < FD_DEBUG_MAX);
assert(type < FD_DEBUG_MAX);
- pid = getpid();
- if (fio_debug_jobp && *fio_debug_jobp != -1U
- && pid != *fio_debug_jobp)
- return;
-
- log_local("%-8s ", debug_levels[type].name);
- log_local("%-5u ", (int) pid);
-
va_start(args, str);
va_start(args, str);
- log_
valist(
str, args);
+ log_
prevalist(type,
str, args);
va_end(args);
}
#endif
va_end(args);
}
#endif