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/miscutils/adjtimex.c

    r3232 r3621  
    1515//usage:       "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
    1616//usage:#define adjtimex_full_usage "\n\n"
    17 //usage:       "Read and optionally set system timebase parameters. See adjtimex(2)\n"
     17//usage:       "Read or set kernel time variables. See adjtimex(2)\n"
    1818//usage:     "\n    -q  Quiet"
    1919//usage:     "\n    -o OFF  Time offset, microseconds"
    2020//usage:     "\n    -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)"
    21 //usage:     "\n        (positive values make clock run faster)"
    2221//usage:     "\n    -t TICK Microseconds per tick, usually 10000"
     22//usage:     "\n        (positive -t or -f values make clock run faster)"
    2323//usage:     "\n    -p TCONST"
    2424
     
    3030#endif
    3131
    32 static const uint16_t statlist_bit[] = {
     32static const uint16_t statlist_bit[] ALIGN2 = {
    3333    STA_PLL,
    3434    STA_PPSFREQ,
     
    4646    0
    4747};
    48 static const char statlist_name[] =
     48static const char statlist_name[] ALIGN1 =
    4949    "PLL"       "\0"
    5050    "PPSFREQ"   "\0"
     
    6262;
    6363
    64 static const char ret_code_descript[] =
     64static const char ret_code_descript[] ALIGN1 =
    6565    "clock synchronized" "\0"
    6666    "insert leap second" "\0"
     
    112112
    113113    if (!(opt & OPT_quiet)) {
    114         int sep;
     114        const char *sep;
    115115        const char *name;
    116116
    117117        printf(
    118118            "    mode:         %d\n"
    119             "-o  offset:       %ld\n"
    120             "-f  frequency:    %ld\n"
     119            "-o  offset:       %ld us\n"
     120            "-f  freq.adjust:  %ld (65536 = 1ppm)\n"
    121121            "    maxerror:     %ld\n"
    122122            "    esterror:     %ld\n"
     
    126126
    127127        /* representative output of next code fragment:
    128            "PLL | PPSTIME" */
     128         * "PLL | PPSTIME"
     129         */
    129130        name = statlist_name;
    130         sep = 0;
     131        sep = "";
    131132        for (i = 0; statlist_bit[i]; i++) {
    132133            if (txc.status & statlist_bit[i]) {
    133                 if (sep)
    134                     fputs(" | ", stdout);
    135                 fputs(name, stdout);
    136                 sep = 1;
     134                printf("%s%s", sep, name);
     135                sep = " | ";
    137136            }
    138137            name += strlen(name) + 1;
     
    144143        printf(")\n"
    145144            "-p  timeconstant: %ld\n"
    146             "    precision:    %ld\n"
     145            "    precision:    %ld us\n"
    147146            "    tolerance:    %ld\n"
    148             "-t  tick:         %ld\n"
     147            "-t  tick:         %ld us\n"
    149148            "    time.tv_sec:  %ld\n"
    150149            "    time.tv_usec: %ld\n"
Note: See TracChangeset for help on using the changeset viewer.