mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
log.c: Rename log_toggle_debug() --> log_debug()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -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