comparison toys/dmesg.c @ 233:d4176f3f3835

Zap toys/Config.in and instead create generated/Config.in from contents of toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
author Rob Landley <rob@landley.net>
date Sat, 19 Jan 2008 17:08:39 -0600
parents 30a6db5a95c2
children 163498bf547b
comparison
equal deleted inserted replaced
232:cd4d5630c978 233:d4176f3f3835
1 /* vi: set sw=4 ts=4: */ 1 /* vi: set sw=4 ts=4:
2 /* 2 *
3 * dmesg.c - display/control kernel ring buffer. 3 * dmesg.c - display/control kernel ring buffer.
4 * 4 *
5 * Copyright 2006, 2007 Rob Landley <rob@landley.net> 5 * Copyright 2006, 2007 Rob Landley <rob@landley.net>
6 * 6 *
7 * Not in SUSv3. 7 * Not in SUSv3.
8 */ 8
9 config DMESG
10 bool "dmesg"
11 default y
12 help
13 usage: dmesg [-n level] [-s bufsize] | -c
14
15 Print or control the kernel ring buffer.
16
17 -n Set kernel logging level (1-9).
18 -s Size of buffer to read (in bytes), default 16384.
19 -c Clear the ring buffer after printing.
20 */
9 21
10 #include "toys.h" 22 #include "toys.h"
11 #include <sys/klog.h> 23 #include <sys/klog.h>
12 24
13 #define TT toy.dmesg 25 #define TT toy.dmesg