freebsd-dev/sbin/dmesg
Florian Smeets e1de133c2e Move the check whether the clear flag is set. This has 2 advantages
- When operating on a core file (-M) and -c is specified we don't clear
  the message buffer of the running system.
- If we don't have permission to clear the buffer print the error message
  only. That's what Linux does in this case, where this feature was ported
  from, and it ensures that the error message doesn't get lost in the noise.

Discussed with:	antoine, cognet
Approved by:	cognet
2013-06-11 17:46:32 +00:00
..
dmesg.8 Bump .Dd for recent content change. 2013-05-10 12:49:16 +00:00
dmesg.c Move the check whether the clear flag is set. This has 2 advantages 2013-06-11 17:46:32 +00:00
Makefile Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00