Skip to contentSkip to conversation

Handling of fault files in generic print code

lm-sensors Hans de Goede 2 participants 3 messages Jul 4, 2007 – Jul 5, 2007

lore
Share & tools
lore
#0 lore raw

Hi All,

I noticed that currently the temp code prints a faults in the place where normally an alarm gets printed, and ignores alarms. I mimicked this for the fault support I added to the fan code.

But is this wise, since the reading are bogus when a FAULT is raised, shouldn't the reading be omitted, just like were omitting the alarm?

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi Hans,

Quoted 6 lines · Hans de Goede

I noticed that currently the temp code prints a faults in the place where normally an alarm gets printed, and ignores alarms. I mimicked this for the fault support I added to the fan code.

But is this wise, since the reading are bogus when a FAULT is raised, shouldn't the reading be omitted, just like were omitting the alarm?

I agree that the current implementation doesn't make much sense and can be confusing to the users. The "FAULT" statement should replace the (invalid) measured value rather than the ALARM flag. Can you please propose a patch doing this?

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Hans de Goede
Quoted 7 lines · Jean Delvare

Hi Hans,

Quoted 4 lines · Hans de Goede

I noticed that currently the temp code prints a faults in the place where normally an alarm gets printed, and ignores alarms. I mimicked this for the fault support I added to the fan code.

Quoted 6 lines
Quoted 2 lines

But is this wise, since the reading are bogus when a FAULT is raised, shouldn't the reading be omitted, just like were omitting the alarm?

I agree that the current implementation doesn't make much sense and can be confusing to the users. The "FAULT" statement should replace the (invalid) measured value rather than the ALARM flag.

Done, see 3.0.0 svn

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors