aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJoe Millenbach <jmillenbach@gmail.com>2012-07-19 21:04:36 -0400
committerH. Peter Anvin <hpa@zytor.com>2012-07-21 14:07:15 -0400
commit9f4e4392cbf72d731a489a3217fe810820b8ba96 (patch)
treeba81b10fe2b9538ee723d1d1b44f93fa3b897011 /arch/x86
parent6887a4131da3adaab011613776d865f4bcfb5678 (diff)
x86, boot: Removed quiet flag and switched quiet output to debug flag
There are only 3 uses of the quiet flag and they all protect output that is only useful for debugging the stub, therefore we switched to using the debug flag for all extra output. Signed-off-by: Joe Millenbach <jmillenbach@gmail.com> Link: http://lkml.kernel.org/r/1342746282-28497-2-git-send-email-jmillenbach@gmail.com Signed-off-by: Gokul Caushik <caushik1@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/compressed/misc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index 7116dcba0c9..8f2355d5858 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -108,7 +108,6 @@ static void error(char *m);
108 * This is set up by the setup-routine at boot-time 108 * This is set up by the setup-routine at boot-time
109 */ 109 */
110struct boot_params *real_mode; /* Pointer to real-mode data */ 110struct boot_params *real_mode; /* Pointer to real-mode data */
111static int quiet;
112static int debug; 111static int debug;
113 112
114void *memset(void *s, int c, size_t n); 113void *memset(void *s, int c, size_t n);
@@ -294,7 +293,7 @@ static void parse_elf(void *output)
294 return; 293 return;
295 } 294 }
296 295
297 if (!quiet) 296 if (debug)
298 putstr("Parsing ELF... "); 297 putstr("Parsing ELF... ");
299 298
300 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); 299 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
@@ -332,8 +331,6 @@ asmlinkage void decompress_kernel(void *rmode, memptr heap,
332{ 331{
333 real_mode = rmode; 332 real_mode = rmode;
334 333
335 if (cmdline_find_option_bool("quiet"))
336 quiet = 1;
337 if (cmdline_find_option_bool("debug")) 334 if (cmdline_find_option_bool("debug"))
338 debug = 1; 335 debug = 1;
339 336
@@ -369,11 +366,11 @@ asmlinkage void decompress_kernel(void *rmode, memptr heap,
369 error("Wrong destination address"); 366 error("Wrong destination address");
370#endif 367#endif
371 368
372 if (!quiet) 369 if (debug)
373 putstr("\nDecompressing Linux... "); 370 putstr("\nDecompressing Linux... ");
374 decompress(input_data, input_len, NULL, NULL, output, NULL, error); 371 decompress(input_data, input_len, NULL, NULL, output, NULL, error);
375 parse_elf(output); 372 parse_elf(output);
376 if (!quiet) 373 if (debug)
377 putstr("done.\nBooting the kernel.\n"); 374 putstr("done.\nBooting the kernel.\n");
378 return; 375 return;
379} 376}