Changeset 4697
- Timestamp:
- 08/22/07 20:43:48 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 3 modified
-
CHANGES (modified) (1 diff)
-
prog/sensors/main.c (modified) (6 diffs)
-
prog/sensors/sensors.1 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4689 r4697 51 51 Program sensors: Drop all the chip-specific support 52 52 Fix alignment of alarm for one-limit temperatures 53 Drop option -U 53 54 Program sensors-detect: Stop Super-I/O probe after first family success 54 55 Fix SMSC DME1737 detection -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c
r4686 r4697 55 55 sensors_chip_name chips[CHIPS_MAX]; 56 56 int chips_count=0; 57 int do_sets, do_unknown, fahrenheit, hide_adapter , hide_unknown;57 int do_sets, do_unknown, fahrenheit, hide_adapter; 58 58 59 59 char degstr[5]; /* store the correct string to print degrees */ … … 72 72 printf(" -f, --fahrenheit Show temperatures in degrees fahrenheit\n"); 73 73 printf(" -A, --no-adapter Do not show adapter for each chip\n"); 74 printf(" -U, --no-unknown Do not show unknown chips\n");75 74 printf(" -u, --unknown Treat chips as unknown ones (testing only)\n"); 76 75 printf(" -v, --version Display the program version\n"); … … 157 156 { "fahrenheit", no_argument, NULL, 'f' }, 158 157 { "no-adapter", no_argument, NULL, 'A' }, 159 { "no-unknown", no_argument, NULL, 'U' },160 158 { "config-file", required_argument, NULL, 'c' }, 161 159 { "unknown", no_argument, NULL, 'u' }, … … 168 166 do_sets = 0; 169 167 hide_adapter = 0; 170 hide_unknown = 0;171 168 while (1) { 172 c = getopt_long(argc, argv, "hsvfA Uc:u", long_opts, NULL);169 c = getopt_long(argc, argv, "hsvfAc:u", long_opts, NULL); 173 170 if (c == EOF) 174 171 break; … … 195 192 case 'A': 196 193 hide_adapter = 1; 197 break;198 case 'U':199 hide_unknown = 1;200 194 break; 201 195 case 'u': … … 307 301 void do_a_print(const sensors_chip_name *name) 308 302 { 309 if (hide_unknown)310 return;311 312 303 printf("%s\n",sprintf_chip_name(name)); 313 304 if (!hide_adapter) { -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/sensors.1
r4206 r4697 1 1 .\" Copyright 1999 Frodo Looijaard <frodol@dds.nl> 2 .\" Copyright (C) 2007 Jean Delvare <khali@linux-fr.org> 2 3 .\" sensors is distributed under the GPL 3 4 .\" … … 22 23 .\" the source, must acknowledge the copyright and authors of this work. 23 24 .\" 24 .TH sensors 1 " October 2006" "" "Linux User's Manual"25 .TH sensors 1 "August 2007" "" "Linux User's Manual" 25 26 .SH NAME 26 27 sensors \- print sensors information … … 45 46 is used to set all limits as specified in the configuration file. 46 47 47 .B sensors48 knows about certain chips, and outputs nicely formatted readings for them; but49 it can also display the information of unknown chips, as long as50 .I libsensors51 knows about them.52 53 48 .SH OPTIONS 54 49 .IP "-c config-file" … … 64 59 .IP -A 65 60 Do not show the adapter for each chip. 66 .IP -U67 Hide unknown chips.68 61 .IP -u 69 62 Treat all chips as unknown ones. Output will be of much lower quality;
