From 8161e8d1535e0d6536adddaea932e76cfa107a00 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 2 Jul 2017 01:26:36 +0200 Subject: [PATCH] Simplify log message from kernel cmdline parser Signed-off-by: Joachim Nilsson --- src/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 6c7ecaf6..6160cfe2 100644 --- a/src/conf.c +++ b/src/conf.c @@ -49,7 +49,8 @@ void conf_parse_cmdline(void) fp = fopen("/proc/cmdline", "r"); if (fp) { fgets(line, sizeof(line), fp); - _d("Kernel command line: %s", line); + chomp(line); + _d("%s", line); if (strstr(line, "finit_debug") || strstr(line, "--debug")) debug = 1;