mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Replace %m GNUism with strerror(errno)
Even musl libc supports %m today, as well as most syslog daemons, but that's no excuse to use this. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3e8d63c29c
commit
fccba7cd4c
4 files changed
+5
-5
No files matched your search
@@ -43,7 +43,7 @@
|
||||
#define _d(fmt, args...) logit(LOG_DEBUG, "%s():" fmt "\n", __func__, ##args)
|
||||
#define _w(fmt, args...) logit(LOG_WARNING, "%s():" fmt "\n", __func__, ##args)
|
||||
#define _e(fmt, args...) logit(LOG_ERR, "%s():" fmt "\n", __func__, ##args)
|
||||
#define _pe(fmt, args...) logit(LOG_ERR, "%s():" fmt ": %m\n", __func__, ##args)
|
||||
#define _pe(fmt, args...) logit(LOG_ERR, "%s():" fmt ": %s\n", __func__, ##args, strerror(errno))
|
||||
|
||||
void log_init (int dbg);
|
||||
void log_exit (void);
|
||||
|
||||
Reference in new issue
Block a user