Subject: Re: kern/36660: envsys sensor names are not unique
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Juan RP <juan@xtrarom.org>
List: netbsd-bugs
Date: 07/21/2007 10:55:02
The following reply was made to PR kern/36660; it has been noted by GNATS.
From: Juan RP <juan@xtrarom.org>
To: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/36660: envsys sensor names are not unique
Date: Sat, 21 Jul 2007 12:51:21 +0200
On Sat, 21 Jul 2007 19:45:33 +0900 (JST)
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
> really? "envstat -s Temp" without -d seems working.
How is it that it works for you but not here?
$ envstat -s "acpibat0 charge" -dacpibat0
acpibat0 charge: 0.663 Ah (16.92%) critical ( 2.50%)
$ envstat -s "acpibat0 charge"
envstat: unknown sensor `acpibat0 charge'
$
And yes, the code checks if -s is used without -d.
> don't you agree that identifiers and descriptions should be separated?
I don't understand you, can you explain some more?
> > You can find this sensor looking at its index (edata->sensor).
>
> is it usable with the new interface?
Of course it is. The code relies in sme_nsensors on many places to
refresh sensor data, create and update the dictionaries, etc.
--
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish