summaryrefslogtreecommitdiffstats
path: root/sbin/dmesg
Commit message (Collapse)AuthorAgeFilesLines
* Avoid moving onto a new line while testing if there is a syslog prioritydwmalone2006-02-271-1/+2
| | | | | | | | | 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
* WARNS=6 cleanup:delphij2005-01-172-4/+9
| | | | | | | - signed/unsigned conform. - Better initialization of nlist[]. I think we should have something like NLIST_NULL instead of the current (ugly) form...
* Print a usage message if a non-option is specified.schweikh2004-10-131-1/+2
| | | | MFC after: 3 weeks
* Don't add integers to void pointers.stefanf2004-10-031-2/+4
|
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Not too much point specifying -N but not specifying -M.ru2004-03-262-14/+12
|
* Further simplify the code for printing the message buffer:iedowse2004-02-081-33/+36
| | | | | | | | | | - 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
* Don't print the oldest line in the message buffer if the buffer isiedowse2004-02-051-51/+54
| | | | | | | | | | 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.
* Replace the code for reading and writing the kernel message bufferiedowse2003-06-221-3/+1
| | | | | | | | | | | | | | | | | 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
* bufpos is used in size_t contexts, so make it one.obrien2003-05-021-6/+5
|
* These are WARNS=2 clean, try to keep them that way.johan2003-02-231-1/+0
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* Include <nlist.h> for nlist interfaces instead of depending on namespacebde2002-08-181-0/+1
| | | | pollution in <kvm.h>.
* The .Nm utilitycharnier2002-07-061-3/+4
|
* o Remove __Pimp2002-03-191-5/+3
| | | | | o Use ANSI function definitions o mark usage() as __dead2
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* mdoc(7) police: compute the exact tag width.ru2001-08-101-1/+1
|
* Add mention of /var/run/dmesg.boot.sheldonh2001-08-081-0/+7
| | | | | Yes, this isn't really the right place for it. No, it really can't remain undocumented.
* add -a to usage()billf2001-07-141-1/+1
| | | | | Submitted by: Ashley Penney <ashp@unloved.org> MFC after: 3 days
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Update the dmesg man page to reflect the recent changes to dmesg.tmm2001-07-051-8/+14
| | | | Reviewed by: ru
* Use the kern.msgbuf sysctl to get the message buffer on a runningtmm2001-07-032-32/+44
| | | | kernel, and remove setgid kmem, which is not needed any more.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+1
|
* Backout -a restriction hack.ru2001-02-262-7/+1
| | | | Requested by: rwatson
* Restrict -a to root only.ru2001-02-242-1/+7
| | | | PR: bin/25337
* Fix hard sentence break introduced in previous commit.sheldonh2000-12-201-2/+2
|
* Add a -a option to show the entire message buffer.phk2000-12-172-5/+26
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Remove obsolete /dev/drum referencesjedgar2000-10-291-1/+0
| | | | Reviewed by: alex, asmodai, billf
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Use an error message that more clearly indites(sp?) an out-of-synchoek1998-07-271-2/+2
| | | | | | kernel+userland when that is the case. PR: bin/7414
* Use .Pa for filenames. Use .Bl/.El in FILES section. Remove unused #includes.charnier1998-06-042-13/+13
|
* Make the size of the msgbuf (dmesg) a "normal" option.phk1998-05-191-8/+14
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Who would have though that dmesg didn't understand message buffers?bde1996-09-211-8/+16
| | | | | | | | | | | | | 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.
* Add relevant files to the FILES sectionmarkm1996-08-031-0/+5
| | | | Submitted by: Julian H Stacey
* Add #include <err.h>.alex1996-06-191-0/+1
|
* Add setlocale LC_CTYPEache1995-10-231-0/+2
|
* Converted 'vmunix' to 'kernel'.dg1994-08-051-1/+1
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-263-0/+230
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud