print file name instead of function name

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-12 18:24:13 +01:00
parent 823190475b
commit cc6473a92a
+1 -1
View File
@@ -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