mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
report the file name plus line instead of function name.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user