From d048ba60fc1e207ac3204ef3306a32fac77293fa Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 19 Mar 2010 16:50:37 +0100 Subject: [PATCH 1/1] Add log_valist() Signed-off-by: Jens Axboe --- debug.c | 2 +- log.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debug.c b/debug.c index 2eb3b6f9..9722878a 100644 --- a/debug.c +++ b/debug.c @@ -22,6 +22,6 @@ void __dprint(int type, const char *str, ...) log_info("%-5u ", (int) pid); va_start(args, str); - vfprintf(f_out, str, args); + log_valist(str, args); va_end(args); } diff --git a/log.h b/log.h index 5ca37b39..71f89c1a 100644 --- a/log.h +++ b/log.h @@ -16,6 +16,7 @@ extern FILE *f_err; } while (0) #define log_info(args...) fprintf(f_out, ##args) +#define log_valist(str, args) vfprintf(f_out, (str), (args)) FILE *get_f_out(void); FILE *get_f_err(void); -- 2.25.1