History log of /freebsd/sbin/dmesg/dmesg.c (Results 51 – 75 of 82)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/2.1.5_cvs
# 301e6a17 21-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Who would have though that dmesg didn't understand message buffers?

Fixed the following bugs:
- the buffer was reprinted endlessly when msg.bufx == 0 and (for a
different reason) when msg.bufx ==

Who would have though that dmesg didn't understand message buffers?

Fixed the following bugs:
- the buffer was reprinted endlessly when msg.bufx == 0 and (for a
different reason) when msg.bufx == 1.
- the last byte of the buffer wasn't printed except in the the infinite
loop cases.
- the comment about walking the buffer didn't match the (correct) code.
- minor -Wall and style bugs.
Not fixed:
- excessive newline processing which hid the non-printing of the last
byte of the buffer.

show more ...


# b7a8c022 19-Jun-1996 Alexander Langer <alex@FreeBSD.org>

Add #include <err.h>.


Revision tags: release/2.1.0_cvs
# 8dcf55a4 24-Oct-1995 Andrey A. Chernov <ache@FreeBSD.org>

Add setlocale LC_CTYPE


Revision tags: release/2.0.5_cvs, release/2.0, release/1.1.5.1_cvs
# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.


Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 48697608 27-Feb-2006 David Malone <dwmalone@FreeBSD.org>

Avoid moving onto a new line while testing if there is a syslog priority
in the buffer. This isn't exactly the patch that Stephen submitted, but
is based on one of his suggestions.

PR: 93841
Submit

Avoid moving onto a new line while testing if there is a syslog priority
in the buffer. This isn't exactly the patch that Stephen submitted, but
is based on one of his suggestions.

PR: 93841
Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
MFC after: 2 weeks

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# 57517b09 17-Jan-2005 Xin LI <delphij@FreeBSD.org>

WARNS=6 cleanup:

- signed/unsigned conform.
- Better initialization of nlist[]. I think we should have
something like NLIST_NULL instead of the current (ugly)
form...


Revision tags: release/5.3.0_cvs, release/5.3.0
# b8a2c7ca 13-Oct-2004 Jens Schweikhardt <schweikh@FreeBSD.org>

Print a usage message if a non-option is specified.
MFC after: 3 weeks


# 4c86f66f 03-Oct-2004 Stefan Farfeleder <stefanf@FreeBSD.org>

Don't add integers to void pointers.


Revision tags: release/4.10.0_cvs, release/4.10.0
# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 46fb2e1d 26-Mar-2004 Ruslan Ermilov <ru@FreeBSD.org>

Not too much point specifying -N but not specifying -M.


Revision tags: release/5.2.1_cvs, release/5.2.1
# ccdb2370 09-Feb-2004 Ian Dowse <iedowse@FreeBSD.org>

Further simplify the code for printing the message buffer:
- Ensure that the buffer ends with "\n\0" to avoid special cases
and allow the use of strtol().
- Use strvisx() on each complete line i

Further simplify the code for printing the message buffer:
- Ensure that the buffer ends with "\n\0" to avoid special cases
and allow the use of strtol().
- Use strvisx() on each complete line instead of character by
character.

Submitted by: bde
MFC after: 1 week

show more ...


# 59f256ec 05-Feb-2004 Ian Dowse <iedowse@FreeBSD.org>

Don't print the oldest line in the message buffer if the buffer is
full, since that line is almost always incomplete. Make the parsing
of <%d> lines more strict.

Also simplify the logic a little:
-

Don't print the oldest line in the message buffer if the buffer is
full, since that line is almost always incomplete. Make the parsing
of <%d> lines more strict.

Also simplify the logic a little:
- Start off by making the buffer linear so that we don't have to
deal with it wrapping around (suggested by bde).
- Process line by line rather than byte at a time.

show more ...


Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0
# 4784a469 22-Jun-2003 Ian Dowse <iedowse@FreeBSD.org>

Replace the code for reading and writing the kernel message buffer
with a new implementation that has a mostly reentrant "addchar"
routine, supports multiple message buffers in the kernel, and hides

Replace the code for reading and writing the kernel message buffer
with a new implementation that has a mostly reentrant "addchar"
routine, supports multiple message buffers in the kernel, and hides
the implementation details from callers.

The new code uses a kind of sequence number to represend the current
read and write positions in the buffer. This approach (suggested
mainly by bde) permits the read and write pointers to be maintained
separately, which reduces the number of atomic operations that are
required. The "mostly reentrant" above refers to the way that while
it is now always safe to have any number of concurrent writers,
readers could see the message buffer after a writer has advanced
the pointers but before it has witten the new character.

Discussed on: freebsd-arch

show more ...


Revision tags: release/5.1.0_cvs, release/5.1.0
# 560bb4f8 02-May-2003 David E. O'Brien <obrien@FreeBSD.org>

bufpos is used in size_t contexts, so make it one.


Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs
# 7309e024 18-Aug-2002 Bruce Evans <bde@FreeBSD.org>

Include <nlist.h> for nlist interfaces instead of depending on namespace
pollution in <kvm.h>.


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 1fa5ae8f 19-Mar-2002 Warner Losh <imp@FreeBSD.org>

o Remove __P
o Use ANSI function definitions
o mark usage() as __dead2


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# bcdb7cc8 14-Jul-2001 Bill Fumerola <billf@FreeBSD.org>

add -a to usage()

Submitted by: Ashley Penney <ashp@unloved.org>
MFC after: 3 days


# 676adc04 03-Jul-2001 Thomas Moestl <tmm@FreeBSD.org>

Use the kern.msgbuf sysctl to get the message buffer on a running
kernel, and remove setgid kmem, which is not needed any more.


Revision tags: release/4.3.0_cvs, release/4.3.0
# f806cd42 26-Feb-2001 Ruslan Ermilov <ru@FreeBSD.org>

Backout -a restriction hack.

Requested by: rwatson


# b52c326c 24-Feb-2001 Ruslan Ermilov <ru@FreeBSD.org>

Restrict -a to root only.

PR: bin/25337


# 9d133455 17-Dec-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Add a -a option to show the entire message buffer.


Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs
# 7f3dea24 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8
# d6c37912 27-Jul-1998 Tim Vanderhoek <hoek@FreeBSD.org>

Use an error message that more clearly indites(sp?) an out-of-sync
kernel+userland when that is the case.

PR: bin/7414


Revision tags: release/2.2.7
# 970cd282 04-Jun-1998 Philippe Charnier <charnier@FreeBSD.org>

Use .Pa for filenames. Use .Bl/.El in FILES section. Remove unused #includes.


# 58067a99 19-May-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Make the size of the msgbuf (dmesg) a "normal" option.


1234