mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 06:45:24 +00:00
sensors: Handle the case where voltage measurements aren't available.
This will soon be the case of the Linux 2.6 gl518sm driver. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4977 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -4,6 +4,7 @@ lm-sensors CHANGES file
|
|||||||
SVN HEAD
|
SVN HEAD
|
||||||
sensord: Reload config on SIGHUP rather than automatically
|
sensord: Reload config on SIGHUP rather than automatically
|
||||||
sensors: Fix file handle leak on library initialization error
|
sensors: Fix file handle leak on library initialization error
|
||||||
|
Handle the case where voltage measurements aren't available
|
||||||
sensors-detect: Fix SMSC LPC47B357/M967 detection
|
sensors-detect: Fix SMSC LPC47B357/M967 detection
|
||||||
Select the right driver for FSC chips
|
Select the right driver for FSC chips
|
||||||
sensors-detect-stat.pl: Handle alternative chip lists
|
sensors-detect-stat.pl: Handle alternative chip lists
|
||||||
|
@@ -287,7 +287,7 @@ static void print_chip_in(const sensors_chip_name *name,
|
|||||||
int label_size)
|
int label_size)
|
||||||
{
|
{
|
||||||
const sensors_subfeature *sf, *sfmin, *sfmax;
|
const sensors_subfeature *sf, *sfmin, *sfmax;
|
||||||
double val, alarm_max, alarm_min;
|
double alarm_max, alarm_min;
|
||||||
char *label;
|
char *label;
|
||||||
|
|
||||||
if (!(label = sensors_get_label(name, feature))) {
|
if (!(label = sensors_get_label(name, feature))) {
|
||||||
@@ -300,8 +300,10 @@ static void print_chip_in(const sensors_chip_name *name,
|
|||||||
|
|
||||||
sf = sensors_get_subfeature(name, feature,
|
sf = sensors_get_subfeature(name, feature,
|
||||||
SENSORS_SUBFEATURE_IN_INPUT);
|
SENSORS_SUBFEATURE_IN_INPUT);
|
||||||
val = sf ? get_value(name, sf) : 0;
|
if (sf)
|
||||||
printf("%+6.2f V", val);
|
printf("%+6.2f V", get_value(name, sf));
|
||||||
|
else
|
||||||
|
printf(" N/A");
|
||||||
|
|
||||||
sfmin = sensors_get_subfeature(name, feature,
|
sfmin = sensors_get_subfeature(name, feature,
|
||||||
SENSORS_SUBFEATURE_IN_MIN);
|
SENSORS_SUBFEATURE_IN_MIN);
|
||||||
|
Reference in New Issue
Block a user