From cc6473a92a301ece1b24f40f8ca088164225bbe6 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 12 Jan 2014 18:24:13 +0100 Subject: [PATCH] print file name instead of function name --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index 49357748..8acaa5ad 100644 --- a/src/main.h +++ b/src/main.h @@ -213,7 +213,7 @@ __attribute__ ((format(printf, 4, 5))) #ifdef __GNUC__ # define mslog(s, proc, prio, fmt, ...) \ - (prio==LOG_ERR)?_mslog(s, proc, prio, "%s:%d: "fmt, __func__, __LINE__, ##__VA_ARGS__): \ + (prio==LOG_ERR)?_mslog(s, proc, prio, "%s:%d: "fmt, __FILE__, __LINE__, ##__VA_ARGS__): \ _mslog(s, proc, prio, fmt, ##__VA_ARGS__) #else # define mslog _mslog