util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmesg: correct "-n, --console-level level" example in manual page
@ 2018-12-17  8:30 Jean-Philippe ROMAIN
  2018-12-17  9:48 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Philippe ROMAIN @ 2018-12-17  8:30 UTC (permalink / raw)
  To: util-linux; +Cc: Jean-Philippe Romain

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>

diff --git a/sys-utils/dmesg.1 b/sys-utils/dmesg.1
index adf5214..a93821a 100644
--- a/sys-utils/dmesg.1
+++ b/sys-utils/dmesg.1
@@ -100,7 +100,7 @@ output.
 For example,
 .B \-n 1
 or
-.B \-n alert
+.B \-n emerg
 prevents all messages, except emergency (panic) messages, from appearing on
 the console.  All levels of messages are still written to
 .IR /proc/kmsg ,
-- 
2.7.4


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

* Re: [PATCH] dmesg: correct "-n, --console-level level" example in manual page
  2018-12-17  8:30 [PATCH] dmesg: correct "-n, --console-level level" example in manual page Jean-Philippe ROMAIN
@ 2018-12-17  9:48 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2018-12-17  9:48 UTC (permalink / raw)
  To: Jean-Philippe ROMAIN; +Cc: util-linux

On Mon, Dec 17, 2018 at 09:30:54AM +0100, Jean-Philippe ROMAIN wrote:
> 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".

Applied, thanks.

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

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

end of thread, other threads:[~2018-12-17  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17  8:30 [PATCH] dmesg: correct "-n, --console-level level" example in manual page Jean-Philippe ROMAIN
2018-12-17  9:48 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).