Changeset 4697

Show
Ignore:
Timestamp:
08/22/07 20:43:48 (7 years ago)
Author:
khali
Message:

Drop sensors option -U, --hide-unknown. libsensors no longer exposes
chips with no features, and it builds the features list dynamically, so
applications no longer get to see unknown chips.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4689 r4697  
    5151  Program sensors: Drop all the chip-specific support 
    5252                   Fix alignment of alarm for one-limit temperatures 
     53                   Drop option -U 
    5354  Program sensors-detect: Stop Super-I/O probe after first family success 
    5455                          Fix SMSC DME1737 detection 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4686 r4697  
    5555sensors_chip_name chips[CHIPS_MAX]; 
    5656int chips_count=0; 
    57 int do_sets, do_unknown, fahrenheit, hide_adapter, hide_unknown; 
     57int do_sets, do_unknown, fahrenheit, hide_adapter; 
    5858 
    5959char degstr[5]; /* store the correct string to print degrees */ 
     
    7272  printf("  -f, --fahrenheit      Show temperatures in degrees fahrenheit\n"); 
    7373  printf("  -A, --no-adapter      Do not show adapter for each chip\n"); 
    74   printf("  -U, --no-unknown      Do not show unknown chips\n"); 
    7574  printf("  -u, --unknown         Treat chips as unknown ones (testing only)\n"); 
    7675  printf("  -v, --version         Display the program version\n"); 
     
    157156    { "fahrenheit", no_argument, NULL, 'f' }, 
    158157    { "no-adapter", no_argument, NULL, 'A' }, 
    159     { "no-unknown", no_argument, NULL, 'U' }, 
    160158    { "config-file", required_argument, NULL, 'c' }, 
    161159    { "unknown", no_argument, NULL, 'u' }, 
     
    168166  do_sets = 0; 
    169167  hide_adapter = 0; 
    170   hide_unknown = 0; 
    171168  while (1) { 
    172     c = getopt_long(argc, argv, "hsvfAUc:u", long_opts, NULL); 
     169    c = getopt_long(argc, argv, "hsvfAc:u", long_opts, NULL); 
    173170    if (c == EOF) 
    174171      break; 
     
    195192    case 'A': 
    196193      hide_adapter = 1; 
    197       break; 
    198     case 'U': 
    199       hide_unknown = 1; 
    200194      break; 
    201195    case 'u': 
     
    307301void do_a_print(const sensors_chip_name *name) 
    308302{ 
    309   if (hide_unknown) 
    310     return; 
    311  
    312303  printf("%s\n",sprintf_chip_name(name)); 
    313304  if (!hide_adapter) { 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/sensors.1

    r4206 r4697  
    11.\" Copyright 1999 Frodo Looijaard <frodol@dds.nl> 
     2.\" Copyright (C) 2007 Jean Delvare <khali@linux-fr.org> 
    23.\" sensors is distributed under the GPL 
    34.\" 
     
    2223.\" the source, must acknowledge the copyright and authors of this work. 
    2324.\" 
    24 .TH sensors 1  "October 2006" "" "Linux User's Manual" 
     25.TH sensors 1  "August 2007" "" "Linux User's Manual" 
    2526.SH NAME 
    2627sensors \- print sensors information 
     
    4546is used to set all limits as specified in the configuration file. 
    4647 
    47 .B sensors 
    48 knows about certain chips, and outputs nicely formatted readings for them; but 
    49 it can also display the information of unknown chips, as long as  
    50 .I libsensors 
    51 knows about them. 
    52  
    5348.SH OPTIONS 
    5449.IP "-c config-file" 
     
    6459.IP -A 
    6560Do not show the adapter for each chip. 
    66 .IP -U 
    67 Hide unknown chips. 
    6861.IP -u 
    6962Treat all chips as unknown ones. Output will be of much lower quality;