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]

 



Alex wrote:

> Hi,
>
> 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);

These are handlers for kernel parameters.
to invoke these functions, pass "debug" and "quiet" respectively from the boot loader as kernel command line.
If you pass both, I think the latter will take precedence. Please correct me if I am wrong.


HTH,
om.


-- 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