diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 11:46:32 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 11:46:32 +0100 |
commit | dd898c9f3388fca1d7339a45150fbb7406de0971 (patch) | |
tree | f9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/dmesg.c | |
parent | e5dd71f94f8691c41382b89de35088695cca34b9 (diff) | |
download | busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.bz2 busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.zip |
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r-- | util-linux/dmesg.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 50e8a0fce..b7b2c6924 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -8,6 +8,43 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | //config:config DMESG | ||
12 | //config: bool "dmesg" | ||
13 | //config: default y | ||
14 | //config: select PLATFORM_LINUX | ||
15 | //config: help | ||
16 | //config: dmesg is used to examine or control the kernel ring buffer. When the | ||
17 | //config: Linux kernel prints messages to the system log, they are stored in | ||
18 | //config: the kernel ring buffer. You can use dmesg to print the kernel's ring | ||
19 | //config: buffer, clear the kernel ring buffer, change the size of the kernel | ||
20 | //config: ring buffer, and change the priority level at which kernel messages | ||
21 | //config: are also logged to the system console. Enable this option if you | ||
22 | //config: wish to enable the 'dmesg' utility. | ||
23 | //config: | ||
24 | //config:config FEATURE_DMESG_PRETTY | ||
25 | //config: bool "Pretty dmesg output" | ||
26 | //config: default y | ||
27 | //config: depends on DMESG | ||
28 | //config: help | ||
29 | //config: If you wish to scrub the syslog level from the output, say 'Y' here. | ||
30 | //config: The syslog level is a string prefixed to every line with the form | ||
31 | //config: "<#>". | ||
32 | //config: | ||
33 | //config: With this option you will see: | ||
34 | //config: # dmesg | ||
35 | //config: Linux version 2.6.17.4 ..... | ||
36 | //config: BIOS-provided physical RAM map: | ||
37 | //config: BIOS-e820: 0000000000000000 - 000000000009f000 (usable) | ||
38 | //config: | ||
39 | //config: Without this option you will see: | ||
40 | //config: # dmesg | ||
41 | //config: <5>Linux version 2.6.17.4 ..... | ||
42 | //config: <6>BIOS-provided physical RAM map: | ||
43 | //config: <6> BIOS-e820: 0000000000000000 - 000000000009f000 (usable) | ||
44 | |||
45 | //applet:IF_DMESG(APPLET(dmesg, BB_DIR_BIN, BB_SUID_DROP)) | ||
46 | |||
47 | //kbuild:lib-$(CONFIG_DMESG) += dmesg.o | ||
11 | 48 | ||
12 | //usage:#define dmesg_trivial_usage | 49 | //usage:#define dmesg_trivial_usage |
13 | //usage: "[-c] [-n LEVEL] [-s SIZE]" | 50 | //usage: "[-c] [-n LEVEL] [-s SIZE]" |