From c8ae77bdc6b13f8ba33d3e26062367e792a0e428 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 12 Aug 2006 18:03:13 +0000 Subject: [PATCH] No error on missing it87 in3, in5, in6 or in7. These inputs are shared with other functions on some IT87xxF variants so the Linux 2.6 driver may not present them forever. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4093 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/sensors/chips.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index aef9a442..b0c092e1 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -3539,8 +3539,7 @@ void print_it87(const sensors_chip_name *name) printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", cur,min,max,alarms&IT87_ALARM_IN3?"ALARM":""); } - } else - printf("ERROR: Can't get IN3 data!\n"); + } free(label); if (!sensors_get_label_and_valid(*name,SENSORS_IT87_IN4,&label,&valid) && !sensors_get_feature(*name,SENSORS_IT87_IN4,&cur) && @@ -3563,8 +3562,7 @@ void print_it87(const sensors_chip_name *name) printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", cur,min,max,alarms&IT87_ALARM_IN5?"ALARM":""); } - } else - printf("ERROR: Can't get IN5 data!\n"); + } free(label); if (!sensors_get_label_and_valid(*name,SENSORS_IT87_IN6,&label,&valid) && !sensors_get_feature(*name,SENSORS_IT87_IN6,&cur) && @@ -3575,8 +3573,7 @@ void print_it87(const sensors_chip_name *name) printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", cur,min,max,alarms&IT87_ALARM_IN6?"ALARM":""); } - } else - printf("ERROR: Can't get IN6 data!\n"); + } free(label); if (!sensors_get_label_and_valid(*name,SENSORS_IT87_IN7,&label,&valid) && !sensors_get_feature(*name,SENSORS_IT87_IN7,&cur) && @@ -3587,8 +3584,7 @@ void print_it87(const sensors_chip_name *name) printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", cur,min,max,alarms&IT87_ALARM_IN7?"ALARM":""); } - } else - printf("ERROR: Can't get IN7 data!\n"); + } free(label); if (!sensors_get_label_and_valid(*name,SENSORS_IT87_IN8,&label,&valid) && !sensors_get_feature(*name,SENSORS_IT87_IN8,&cur)) {