Re: how to increase kernel debug level from 4 to 10 at the boot time ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 28 January 2005 20:37, Alex wrote:
> I see in init/main.c the following functions:
>
> static int __init debug_kernel(char *str)
> {
>         if (*str)
>                 return 0;
>         console_loglevel = 10;
>         return 1;
> }
>
> static int __init quiet_kernel(char *str)
> {
>         if (*str)
>                 return 0;
>         console_loglevel = 4;
>         return 1;
> }
>
> __setup("debug", debug_kernel);
> __setup("quiet", quiet_kernel);
>
> Are those functions to be called "manually" (where ?) or
> they get called "automatically" upon setting CONFIG_DEBUG_KERNEL to
> "y" in .config ?

Those 2 routines are called at boot time if you specify the 
corresponding "debug" or "quiet" arguments to the kernel from the boot 
loader.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux