Util-Linux Archive on lore.kernel.org
 help / 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	[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, back to index

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

Util-Linux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/util-linux/0 util-linux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 util-linux util-linux/ https://lore.kernel.org/util-linux \
		util-linux@vger.kernel.org util-linux@archiver.kernel.org
	public-inbox-index util-linux


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.util-linux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox