summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.1
Commit message (Collapse)AuthorAgeFilesLines
* dmesg: correct "-n, --console-level level" example in manual pageJean-Philippe ROMAIN2018-12-171-1/+1
| | | | | | | | | | When providing an abbreviation of the level name with the option "-n, --console-level level", it corresponds to the level (included) up to which messages are displayed on the console. If a level number is given, this level is excluded. So in the given example, "-n 1" is equivalent to "-n emerg". Signed-off-by: Jean-Philippe Romain <jean-philippe.romain@st.com>
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-1/+1
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* dmesg: link together with syslog(2) manual pageSami Kerola2018-05-031-1/+7
| | | | | | | The dmesg may require capabilities(7) when /proc/sys/kernel/dmesg_restrict has none zero value. This is explained in detail in syslog(2) manual page. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: Add --force-prefix optionPrarit Bhargava2017-11-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel outputs multi-line messages (kernel messages that contain the end-of-line character '\n'). These message are currently displayed by dmesg as [965199.028940] runnable tasks: task PID tree-key switches prio wait-time sum-exec sum-sleep ---------------------------------------------------------------------------------------------------------- The kernel timestamps each of these lines with [965199.028940] and the dmesg utility should do the same. Add the 'force-prefix'/'-p' dmesg option to add decode & timestamp information to each line of a multi-line message. Notes: The new print_record() algorithm stores the decode & timestamp information in buffers. If the force-prefix option is used, the message is split into separate lines and each line is prefixed with the stored decode & timestamp information. The splitting of the message into separate lines is done using strtok() which requires write access to the message buffer (ie, the const message buffer is now copied into a writeable buffer). Successfully tested by me by looking at sysrq-t and sysrq-w output. All known good /tests passed with these changes. [kzak@redhat.com: - use snprintf() - cleanup \n usage (don't count line break to the message text in the parsers and always print \n after the text - add the option to the man page - use --force-prefix for kmsg only, old syslog(2) API splits messages itself - strdup() the message text only on force-prefix] Signed-off-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add note about -F format to the man pageKarel Zak2017-10-301-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix formatting errors in page cross referencesMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | | | | | These pages had errors such as .BR page (x) . which should be .BR page (x). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* dmseg: slightly improve punctuation and formatting of the manpageBenno Schulenberg2015-11-091-5/+5
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* dmesg: highlight -T issues in docsKarel Zak2015-08-251-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* colors: cleanup man pages, add hint to usage()Karel Zak2015-02-251-2/+3
| | | | | | | | cfdisk, fdisk, calm dmesg and hexdump Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-14/+14
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* dmesg: improve reltime colorsKarel Zak2014-10-141-0/+4
| | | | | | | | | | | [ +0.004034] sd 113:0:0:0: [sdb] Attached SCSI disk [Oct10 13:04] sdb: unknown partition table [ +0.034011] sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 > .. the "Oct10 13:04" is possible to colorize by "timebreak" scheme (default is bold green). Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix some things that were overlooked during the first passBenno Schulenberg2014-07-281-12/+17
| | | | | | | Mainly more option sorting, some formatting adjustments, and the adding of a missing --version here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: bring some more man pages closer to standard formattingBenno Schulenberg2014-07-161-23/+29
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* dmesg: support colors customizationKarel Zak2014-05-131-10/+34
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add info to man pages, add terminal-colors.d.5Karel Zak2014-03-111-0/+11
| | | | | Co-Author: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: fix wording and formatting of man page for dmesgBenno Schulenberg2013-07-091-45/+47
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: add --time-format option and ISO-8601 format to manualSami Kerola2013-07-011-0/+22
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: support --color[={auto,always,never}]Karel Zak2013-05-061-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: use $PAGER for --human output, add --nopagerKarel Zak2013-03-181-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --humanKarel Zak2013-03-181-0/+2
| | | | | | | | * enable --reltime * enable --color * a little bit cleanup main() Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: Add a --color option to colorize error and panic messagesOndrej Oprala2012-10-161-0/+2
| | | | | | | | [kzak@redhat.com: - update man page - colorize critical messages too] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* dmesg: add --reltime to print human readable deltasKarel Zak2012-07-201-0/+2
| | | | | | | | | | | | | | | | | [Jul20 09:50] device vnet0 entered promiscuous mode [ +0.002248] virbr0: topology change detected, propagating [ +0.000017] virbr0: port 2(vnet0) entered forwarding state [ +0.000036] virbr0: port 2(vnet0) entered forwarding state [ +0.001663] ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready [ +10.480914] vnet0: no IPv6 routers present [Jul20 14:35] xhci_hcd 0000:0e:00.0: WARN Event TRB for slot 3 ep 5 with no TDs queued? [Jul20 19:23] EXT4-fs (sda2): re-mounted. Opts: (null) [ +6.052980] EXT4-fs (sda2): re-mounted. Opts: (null) Suggested by Linus: http://thread.gmane.org/gmane.linux.kernel/1290886/focus=1296138 Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: implement backwardly compatible --raw for /dev/kmsgKarel Zak2012-07-201-2/+13
| | | | | | .. and if you really want raw data from /dev/kmsg then use dd(1) ;-) Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --follow featureKarel Zak2012-07-201-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --syslog to force to old syslog(2) interfaceKarel Zak2012-07-191-0/+7
| | | | | | | ... just for debugging or for people who somehow depends on syslog(2) behavior. Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk22' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-051-68/+86
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk22' of git://github.com/kerolasa/lelux-utiliteetit: docs: clean up getopt.1 manual docs: clean up dmesg.1 manual docs: clean up chcpu.8 manual fileutils: xmkstemp() interface change docs: fix all man page groff warnings tools: add checkmans.sh docs: clean up wdctl.8 manual docs: clean up login.1 manual login: allow TTYGROUP name begin by number build-sys: add su executable to .gitignore logindefs: change getlogindefs_num() to return unsigned long Conflicts: login-utils/su.c sys-utils/dmesg.1
| * docs: clean up dmesg.1 manualSami Kerola2012-06-021-68/+86
| | | | | | | | | | | | | | | | | | | | | | * Add lightness to synopsis. * Add few missing italic highlights to text segments which refer command line argument(s). * Turn off bold where ever possible (makes text unnecessarily heavy). * Add spaces after dots (English spacing). * Use URL and email macros where appropriate. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | dmesg: fix typo in man pageKarel Zak2012-06-051-1/+1
|/ | | | | Reported-by: Hemant Borole <hemantborole@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --file optionKarel Zak2011-09-081-0/+2
| | | | | | | This new option is mostly for testing (to test raw logs from another boxes/kernels). Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-1/+1
| | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* dmesg: allow to print time delta without timestampKarel Zak2011-07-201-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --ctime to print human readable timestampsKarel Zak2011-07-201-0/+4
| | | | | | Based on patch from "corentin.labbe" <corentin.labbe@geomatys.fr>. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --show-delta optionKarel Zak2011-07-201-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add -t option to suppress timestampsKarel Zak2011-07-181-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add -u and -k optionsKarel Zak2011-07-181-0/+4
| | | | | | | | | -u : print kernel messages -k : print userspace message The options could be mixed together or with --facility option too. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: reorder options, add commentsKarel Zak2011-07-141-11/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --facility optionKarel Zak2011-07-141-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --decode to print readable facility and levelKarel Zak2011-07-141-0/+2
| | | | | | | | | | | | # dmesg --decode ... 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 kern :debug : [53336.418576] e1000e 0000:00:19.0: irq 45 for MSI/MSI-X Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --level=<list>Karel Zak2011-07-131-0/+6
| | | | | | | | | | For example dmesg --level=err,warn will print only error and warning messages. Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg; support level names (e.g. --console-level=alert)Karel Zak2011-07-011-2/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --console-on and --console-offKarel Zak2011-07-011-1/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: cleanup options and man pageKarel Zak2011-07-011-9/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add --clear (SYSLOG_ACTION_CLEAR)Karel Zak2011-07-011-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: add long options, --help and --versionKarel Zak2011-07-011-25/+17Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: fix typo in man pageKen Kopin2009-10-191-1/+1
| | | | Signed-off-by: LaMont Jones <lamont@debian.org>
* dmesg.1: formattingPeter Breitenlohner2009-08-171-3/+9
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>