Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/miscutils/adjtimex.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/miscutils/adjtimex.c
r3232 r3621 15 15 //usage: "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]" 16 16 //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" 18 18 //usage: "\n -q Quiet" 19 19 //usage: "\n -o OFF Time offset, microseconds" 20 20 //usage: "\n -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)" 21 //usage: "\n (positive values make clock run faster)"22 21 //usage: "\n -t TICK Microseconds per tick, usually 10000" 22 //usage: "\n (positive -t or -f values make clock run faster)" 23 23 //usage: "\n -p TCONST" 24 24 … … 30 30 #endif 31 31 32 static const uint16_t statlist_bit[] = {32 static const uint16_t statlist_bit[] ALIGN2 = { 33 33 STA_PLL, 34 34 STA_PPSFREQ, … … 46 46 0 47 47 }; 48 static const char statlist_name[] =48 static const char statlist_name[] ALIGN1 = 49 49 "PLL" "\0" 50 50 "PPSFREQ" "\0" … … 62 62 ; 63 63 64 static const char ret_code_descript[] =64 static const char ret_code_descript[] ALIGN1 = 65 65 "clock synchronized" "\0" 66 66 "insert leap second" "\0" … … 112 112 113 113 if (!(opt & OPT_quiet)) { 114 intsep;114 const char *sep; 115 115 const char *name; 116 116 117 117 printf( 118 118 " mode: %d\n" 119 "-o offset: %ld \n"120 "-f freq uency: %ld\n"119 "-o offset: %ld us\n" 120 "-f freq.adjust: %ld (65536 = 1ppm)\n" 121 121 " maxerror: %ld\n" 122 122 " esterror: %ld\n" … … 126 126 127 127 /* representative output of next code fragment: 128 "PLL | PPSTIME" */ 128 * "PLL | PPSTIME" 129 */ 129 130 name = statlist_name; 130 sep = 0;131 sep = ""; 131 132 for (i = 0; statlist_bit[i]; i++) { 132 133 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 = " | "; 137 136 } 138 137 name += strlen(name) + 1; … … 144 143 printf(")\n" 145 144 "-p timeconstant: %ld\n" 146 " precision: %ld \n"145 " precision: %ld us\n" 147 146 " tolerance: %ld\n" 148 "-t tick: %ld \n"147 "-t tick: %ld us\n" 149 148 " time.tv_sec: %ld\n" 150 149 " time.tv_usec: %ld\n"
Note:
See TracChangeset
for help on using the changeset viewer.