Util-Linux package development
 help / color / mirror / Atom feed
* dmesg(1) changes
@ 2011-07-14 11:52 Karel Zak
  2011-07-14 12:40 ` Lennart Poettering
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Karel Zak @ 2011-07-14 11:52 UTC (permalink / raw)
  To: util-linux; +Cc: Lennart Poettering


 Hi,

I did some changes to dmesg(1) in last days:

 * \x<hex> encoding is used for non-printable chars and invalid 
   multibyte sequences

 * add --decode option to decode facility and level (priotity) number to
   human readable prefixes, for example:

    $ dmesg --decode
    kern  :info  : [53335.593617] ata1.00: configured for UDMA/100
    kern  :info  : [53335.743185] PM: resume of devices complete after 2496.795 msecs
    kern  :debug : [53335.743593] PM: Finishing wakeup.
    kern  :warn  : [53335.743595] Restarting tasks ... done.
    kern  :info  : [53335.790452] video LNXVIDEO:00: Restoring backlight state

 * add --facility=<LIST> option to filter out messages, for example:

    $ dmesg --facility=daemon,user
    [    1.802065] dracut: dracut-009-11.fc15
    [    1.811267] dracut: rd.luks=0: removing cryptoluks activation
    [    1.813913] dracut: rd.lvm=0: removing LVM activation
    [    1.819348] udev[111]: starting version 167

 * add --level=<LIST> option to filter out messages, for example:

    $ dmesg --level=debug,info

    $ dmesg --facility=kern --level=warn,err

 * add --clear option to clear the kernel ring buffer

 * add --read-clear to read and clear the kernel ring buffer

 * add --console-off and --console-on to control output to console

 * -n <LEVEL> (--console-level) supports human readable level names,
   for example:

    $ dmesg --console-level=emerg,alert

Comments & suggestions?

    Karel
-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-18 22:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-14 11:52 dmesg(1) changes Karel Zak
2011-07-14 12:40 ` Lennart Poettering
2011-07-18  9:52   ` Karel Zak
2011-07-14 13:45 ` Kay Sievers
2011-07-18 13:00 ` Thomas Bächler
2011-07-18 22:28   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox