mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
Simplify log message from kernel cmdline parser
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ec52a6a240
commit
8161e8d153
1 file changed
+2
-1
+2
-1
@@ -49,7 +49,8 @@ void conf_parse_cmdline(void)
|
|||||||
fp = fopen("/proc/cmdline", "r");
|
fp = fopen("/proc/cmdline", "r");
|
||||||
if (fp) {
|
if (fp) {
|
||||||
fgets(line, sizeof(line), 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"))
|
if (strstr(line, "finit_debug") || strstr(line, "--debug"))
|
||||||
debug = 1;
|
debug = 1;
|
||||||
|
|||||||
Reference in new issue
Block a user