From 8ce330bcdb982e173768302c6b006bdd239ca568 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 2 Jul 2017 12:28:16 +0200 Subject: [PATCH] log.c: Rename log_toggle_debug() --> log_debug() Signed-off-by: Joachim Nilsson --- src/api.c | 2 +- src/log.c | 2 +- src/log.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api.c b/src/api.c index 15ee1778..3233c9f3 100644 --- a/src/api.c +++ b/src/api.c @@ -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' */ diff --git a/src/log.c b/src/log.c index 3372cf0c..9365e67a 100644 --- a/src/log.c +++ b/src/log.c @@ -31,7 +31,7 @@ static int loglevel = LOG_NOTICE; -void log_toggle_debug(void) +void log_debug(void) { debug = !debug; if (debug) diff --git a/src/log.h b/src/log.h index 1bfaaa25..8821bb09 100644 --- a/src/log.h +++ b/src/log.h @@ -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_ */