log.c: New log_exit() function, called at shutdown

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-02 12:31:38 +02:00
1 parent 8ce330bcdb
commit 1036c365b8
4 files changed
+21 -15

No files matched your search

+2
View File
@@ -40,6 +40,8 @@
#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)
void log_exit (void);
void log_debug (void);
void logit (int prio, const char *fmt, ...);