Re: SUB:HELP FOR LOG/MESSAGE

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

 



Hi Kanhnu,

have you tried raising the priority of the printk messages ?

       The loglevel
       The  kernel  routine printk() will only print a message on
       the console, if it has a loglevel less than the  value  of
       the   variable  console_loglevel  (initially  DEFAULT_CON-
       SOLE_LOGLEVEL (7), but set to 10 if the kernel commandline
       contains  the  word `debug', and to 15 in case of a kernel
       fault - the 10 and 15 are just silly,  and  equivalent  to
       8).  This variable is set (to a value in the range 1-8) by
       the  call  syslog  (8,dummy,value).   The   calls   syslog
       (type,dummy,idummy) with type equal to 6 or 7, set it to 1
       (kernel panics only) or 7 (all except debugging messages),
       respectively.

       Every  text  line  in a message has its own loglevel. This
       level is DEFAULT_MESSAGE_LOGLEVEL - 1 (6) unless the  line
       starts  with  <d>  where d is a digit in the range 1-7, in
       which case the level is d. The conventional meaning of the
       loglevel is defined in <linux/kernel.h> as follows:

       #define KERN_EMERG    "<0>"  /* system is unusable               */
       #define KERN_ALERT    "<1>"  /* action must be taken immediately */
       #define KERN_CRIT     "<2>"  /* critical conditions              */
       #define KERN_ERR      "<3>"  /* error conditions                 */
       #define KERN_WARNING  "<4>"  /* warning conditions               */
       #define KERN_NOTICE   "<5>"  /* normal but significant condition */
       #define KERN_INFO     "<6>"  /* informational                    */
       #define KERN_DEBUG    "<7>"  /* debug-level messages             */

MiC



----- Original Message ----- 
From: "kanhu rauta" <kanhu2004@xxxxxxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
Sent: Wednesday, July 14, 2004 12:13 PM
Subject: SUB:HELP FOR LOG/MESSAGE



Dear sir/madam,
SORRY FOR MINE POOR ENGLISH.
>i am doing some kernel code modification as for mine requirement, for mine
debugging perpose i used the printk() statement in the codes.but some times
mine system hangs,at that time i unable to get the print stastments.in the
/var/log/messages.so i did not getting whats the problem

> weither any other place or techineque to get the log/messages at the time
system hangs.
any ideia regarding this is welcome
With Regards
kanhu

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe
https://www.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux