report the file name plus line instead of function name.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-12 10:19:42 +01:00
parent 3d0a69e5f6
commit 3c82dc7787
+1 -1
View File
@@ -169,7 +169,7 @@ void __attribute__ ((format(printf, 3, 4)))
#ifdef __GNUC__
# define oclog(server, prio, fmt, ...) \
(prio==LOG_ERR)?_oclog(server, prio, "%s:%d: "fmt, __func__, __LINE__, ##__VA_ARGS__): \
(prio==LOG_ERR)?_oclog(server, prio, "%s:%d: "fmt, __FILE__, __LINE__, ##__VA_ARGS__): \
_oclog(server, prio, fmt, ##__VA_ARGS__)
#else
# define oclog _oclog