Subject: CVS commit: src/sys/dev/sysmon
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 07/04/2007 16:30:18
Module Name:	src
Committed By:	xtraeme
Date:		Wed Jul  4 16:30:18 UTC 2007

Modified Files:
	src/sys/dev/sysmon: sysmon_envsys.c

Log Message:
Fix the old ENVSYS_GTREDATA ioctl if there are sensors with invalid
state. Enable all sensors by default as valid and current valid data and
if there is one that is in invalid state, mark current data as not valid.

This matches the behaviour with the old API. Also, this fixes the problem
with ipmi(4) reporting bogus values with sensors in invalid state using
the old envstat(8).

Note that this only happened when using the old envstat(8).


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 src/sys/dev/sysmon/sysmon_envsys.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.