From 698e5846f704891f3e704989a268ed3ab3d9f463 Mon Sep 17 00:00:00 2001 From: deadman96385 Date: Thu, 1 Jul 2021 13:46:58 -0700 Subject: [PATCH] [DNM] [TMP] HACK: Disable log level from being set * This allows the kernel log to be piped to uart by default. Change-Id: I7c19a152daea7b920b247a2cce608abf13183f93 --- init/main.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/init/main.c b/init/main.c index cc8df92d7206..0adbbf79d961 100644 --- a/init/main.c +++ b/init/main.c @@ -216,25 +216,6 @@ static int __init quiet_kernel(char *str) early_param("debug", debug_kernel); early_param("quiet", quiet_kernel); -static int __init loglevel(char *str) -{ - int newlevel; - - /* - * Only update loglevel value when a correct setting was passed, - * to prevent blind crashes (when loglevel being set to 0) that - * are quite hard to debug - */ - if (get_option(&str, &newlevel)) { - console_loglevel = newlevel; - return 0; - } - - return -EINVAL; -} - -early_param("loglevel", loglevel); - /* Change NUL term back to "=", to make "param" the whole string. */ static int __init repair_env_string(char *param, char *val, const char *unused, void *arg) -- 2.20.1