Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/util-linux/dmesg.c

    r3232 r3621  
    1717//usage:     "\n    -n LEVEL    Set console logging level"
    1818//usage:     "\n    -s SIZE     Buffer size"
     19//usage:     "\n    -r      Print raw message buffer"
    1920
    2021#include <sys/klog.h>
     
    3031        OPT_c = 1 << 0,
    3132        OPT_s = 1 << 1,
    32         OPT_n = 1 << 2
     33        OPT_n = 1 << 2,
     34        OPT_r = 1 << 3
    3335    };
    3436
    3537    opt_complementary = "s+:n+"; /* numeric */
    36     opts = getopt32(argv, "cs:n:", &len, &level);
     38    opts = getopt32(argv, "cs:n:r", &len, &level);
    3739    if (opts & OPT_n) {
    3840        if (klogctl(8, NULL, (long) level))
     
    5658
    5759
    58     if (ENABLE_FEATURE_DMESG_PRETTY) {
     60    if (ENABLE_FEATURE_DMESG_PRETTY && !(opts & OPT_r)) {
    5961        int last = '\n';
    6062        int in = 0;
Note: See TracChangeset for help on using the changeset viewer.