mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Not too much point specifying -N but not specifying -M.
This commit is contained in:
parent
0b46bb97a7
commit
46fb2e1dbc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127448
|
@ -41,22 +41,19 @@
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl a
|
.Op Fl a
|
||||||
.Op Fl M Ar core
|
.Op Fl M Ar core Op Fl N Ar system
|
||||||
.Op Fl N Ar system
|
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
utility displays the contents of the system message buffer.
|
utility displays the contents of the system message buffer.
|
||||||
If neither the
|
If the
|
||||||
.Fl N
|
|
||||||
nor the
|
|
||||||
.Fl M
|
.Fl M
|
||||||
option is specified, the buffer is read from the currently running kernel
|
option is not specified, the buffer is read from the currently running kernel
|
||||||
via the
|
via the
|
||||||
.Xr sysctl 3
|
.Xr sysctl 3
|
||||||
interface.
|
interface.
|
||||||
Otherwise, the buffer is read from the specified core file (or from the
|
Otherwise, the buffer is read from the specified core file,
|
||||||
default one), using the name list from the specified kernel image (or from
|
using the name list from the specified kernel image (or from
|
||||||
the default image).
|
the default image).
|
||||||
.Pp
|
.Pp
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
|
@ -67,11 +64,12 @@ This includes any syslog records and
|
||||||
.Pa /dev/console
|
.Pa /dev/console
|
||||||
output.
|
output.
|
||||||
.It Fl M
|
.It Fl M
|
||||||
Extract values associated with the name list from the specified core
|
Extract values associated with the name list from the specified core.
|
||||||
instead of the default
|
|
||||||
.Pa /dev/kmem .
|
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default,
|
If
|
||||||
|
.Fl M
|
||||||
|
is also specified,
|
||||||
|
extract the name list from the specified system instead of the default,
|
||||||
which is the kernel image the system has booted from.
|
which is the kernel image the system has booted from.
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
|
|
|
@ -105,7 +105,7 @@ main(int argc, char *argv[])
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
if (memf == NULL && nlistf == NULL) {
|
if (memf == NULL) {
|
||||||
/*
|
/*
|
||||||
* Running kernel. Use sysctl. This gives an unwrapped
|
* Running kernel. Use sysctl. This gives an unwrapped
|
||||||
* buffer as a side effect.
|
* buffer as a side effect.
|
||||||
|
@ -196,6 +196,6 @@ main(int argc, char *argv[])
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "usage: dmesg [-a] [-M core] [-N system]\n");
|
(void)fprintf(stderr, "usage: dmesg [-a] [-M core [-N system]]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue