mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
log.c: Rename log_toggle_debug() --> log_debug()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
8161e8d153
commit
8ce330bcdb
3 files changed
+3
-3
No files matched your search
@@ -228,7 +228,7 @@ static void cb(uev_t *w, void *UNUSED(arg), int UNUSED(events))
|
||||
break;
|
||||
|
||||
case INIT_CMD_DEBUG:
|
||||
log_toggle_debug();
|
||||
log_debug();
|
||||
break;
|
||||
|
||||
case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
static int loglevel = LOG_NOTICE;
|
||||
|
||||
void log_toggle_debug(void)
|
||||
void log_debug(void)
|
||||
{
|
||||
debug = !debug;
|
||||
if (debug)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#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_toggle_debug(void);
|
||||
void log_debug (void);
|
||||
void logit (int prio, const char *fmt, ...);
|
||||
|
||||
#endif /* FINIT_LOG_H_ */
|
||||
Reference in new issue
Block a user