From b3fb9ab3ed5beb834844103984a6d8eda661dc28 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 4 Sep 2016 16:10:23 +0200 Subject: [PATCH] Fix placement of newline for early debug Signed-off-by: Joachim Nilsson --- helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.h b/helpers.h index 2a573a9f..0b4a8e26 100644 --- a/helpers.h +++ b/helpers.h @@ -37,7 +37,7 @@ * Use of logit() is preferred, but these are guaranteed to display on * /dev/console as well. Useful for critical errors and early debug. */ -#define _l(prio, fmt, args...) do { if (_slup) warnx(fmt "\n", ##args); logit(prio, fmt, ##args); } while (0) +#define _l(prio, fmt, args...) do { if (_slup) warnx(fmt, ##args); logit(prio, fmt "\n", ##args); } while (0) #define _m(prio, fmt, args...) do { _l(prio, "finit:%s:%s() - " fmt, __FILE__, __func__, ##args); } while (0) #define _d(fmt, args...) do { if (debug) { _m(LOG_DEBUG, fmt, ##args); } } while (0) #define _e(fmt, args...) do { _m(LOG_ERR, fmt, ##args); } while (0)