log.c: Rename log_toggle_debug() --> log_debug()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-07-02 12:28:16 +02:00
parent 8161e8d153
commit 8ce330bcdb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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' */
+1 -1
View File
@@ -31,7 +31,7 @@
static int loglevel = LOG_NOTICE;
void log_toggle_debug(void)
void log_debug(void)
{
debug = !debug;
if (debug)
+1 -1
View File
@@ -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_ */