Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/dmesg.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/dmesg.c
r3232 r3621 17 17 //usage: "\n -n LEVEL Set console logging level" 18 18 //usage: "\n -s SIZE Buffer size" 19 //usage: "\n -r Print raw message buffer" 19 20 20 21 #include <sys/klog.h> … … 30 31 OPT_c = 1 << 0, 31 32 OPT_s = 1 << 1, 32 OPT_n = 1 << 2 33 OPT_n = 1 << 2, 34 OPT_r = 1 << 3 33 35 }; 34 36 35 37 opt_complementary = "s+:n+"; /* numeric */ 36 opts = getopt32(argv, "cs:n: ", &len, &level);38 opts = getopt32(argv, "cs:n:r", &len, &level); 37 39 if (opts & OPT_n) { 38 40 if (klogctl(8, NULL, (long) level)) … … 56 58 57 59 58 if (ENABLE_FEATURE_DMESG_PRETTY ) {60 if (ENABLE_FEATURE_DMESG_PRETTY && !(opts & OPT_r)) { 59 61 int last = '\n'; 60 62 int in = 0;
Note:
See TracChangeset
for help on using the changeset viewer.