From: deadman96385 Date: Thu, 1 Jul 2021 20:46:58 +0000 (-0700) Subject: [DNM] [TMP] HACK: Disable log level from being set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=698e5846f704891f3e704989a268ed3ab3d9f463;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [DNM] [TMP] HACK: Disable log level from being set * This allows the kernel log to be piped to uart by default. Change-Id: I7c19a152daea7b920b247a2cce608abf13183f93 --- 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)