aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/main.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/init/main.c b/init/main.c
index ed9747f00ec4..c59859b85db0 100644
--- a/init/main.c
+++ b/init/main.c
@@ -238,22 +238,18 @@ EXPORT_SYMBOL(loops_per_jiffy);
238 238
239static int __init debug_kernel(char *str) 239static int __init debug_kernel(char *str)
240{ 240{
241 if (*str)
242 return 0;
243 console_loglevel = 10; 241 console_loglevel = 10;
244 return 1; 242 return 0;
245} 243}
246 244
247static int __init quiet_kernel(char *str) 245static int __init quiet_kernel(char *str)
248{ 246{
249 if (*str)
250 return 0;
251 console_loglevel = 4; 247 console_loglevel = 4;
252 return 1; 248 return 0;
253} 249}
254 250
255__setup("debug", debug_kernel); 251early_param("debug", debug_kernel);
256__setup("quiet", quiet_kernel); 252early_param("quiet", quiet_kernel);
257 253
258static int __init loglevel(char *str) 254static int __init loglevel(char *str)
259{ 255{
@@ -261,7 +257,7 @@ static int __init loglevel(char *str)
261 return 1; 257 return 1;
262} 258}
263 259
264__setup("loglevel=", loglevel); 260early_param("loglevel", loglevel);
265 261
266/* 262/*
267 * Unknown boot options get handed to init, unless they look like 263 * Unknown boot options get handed to init, unless they look like