From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH resend] sensors: Add support for additional
Date: Tue, 15 Mar 2011 22:54:15 +0000 [thread overview]
Message-ID: <20110315225415.GA23844@ericsson.com> (raw)
In-Reply-To: <20110210030757.GA22858@ericsson.com>
Hi Jean,
On Tue, Mar 15, 2011 at 05:50:46PM -0400, Jean Delvare wrote:
> On Tue, 15 Mar 2011 13:17:05 -0700, Guenter Roeck wrote:
> > On Tue, 2011-03-15 at 15:44 -0400, Jean Delvare wrote:
> > > I'd seen this, yes. "emergency" could be shorten to "emerg" (after all
> > > we already shortened "critical" to "crit".) For hysteresis, my plan is
> > > to ensure it's always on the same line as the limit it relates to, so
> > > "hyst" will always be enough.
> > >
> > Ok, I'll make it "emerg". Or maybe "emrg" to make it fit into four
> > characters ?
>
> "emrg" is certainly the easiest approach, yes. I just wasn't sure if it
> would be clear enough for the users.
>
> Note that there are still "lowest" and "highest" which are longer than 4
> chars, and which we won't be able to shorten, so focusing on the
> "emergency" case may not be the best thing to do.
>
> One thing worth noting is that neither of these 3 long strings are
> relevant for the typical PC user (which I admit is the one I mostly
> care about) so in fact I don't personally care if they break alignment,
> and it is quite possible that the affected users don't care either.
>
Makes sense, and, yes, at least I don't care that much about alignment.
So I'll stick with "emerg".
> > > (...)
> > > You have interesting I2C bus numbers :p
> >
> > The system has more than 50 virtual (ie multiplexed) and real I2C
> > busses. There are some gaps to keep numbers aligned. I can send you the
> > complete sensors output if you like ... must be the best monitored
> > system in the world.
>
> I'm very happy to see that apparently the i2c core is able to cope
> nicely with this amount of devices :)
>
> > > > (...)
> > > > jc42-i2c-100-1a
> > > > Adapter: SMBus I801 adapter at 5080
> > > > temp1: +26.2 C (low = +0.0 C, high = +0.0 C) ALARM (MAX, CRIT)
> > >
> > > The "MAX" in alarm is inconsistent with the "high" label... We should
> > > use LOW and HIGH for temperature alarms, not MIN and MAX.
> > >
> > Fine with me. No backwards compatibility concerns ?
>
> No. Limit-specific alarm flags are relatively recent, and most often
> not available on PC mainboard monitoring devices, so the impact of the
> change is low.
>
Ok.
> > > (...)
> > > I think you're missing one space here, as an ALARM on the temp1 line
> > > would have 2 spaces before ALARM.
> > >
> > That is because the "crit" temperature has three digits.
>
> Ah, yes, the very point you were making; sorry for being distracted.
>
> > > > in2: +0.00 V ALARM
> > > > fan1: N/A
> > > > temp1: +34.0 C (high = +97.0 C, crit = +107.0 C)
> > > > power1: 0.00 nW
>
> Apparently our unit selection algorithm picks the smallest unit if
> value is 0? Wouldn't it make more sense to pick the base unit instead
> (W in this case)?
>
I'll add
if (abs_value = 0) {
*prefixstr = "";
return;
}
to the beginning of scale_value(). Seems to be the easiest fix.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2011-03-15 22:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 3:07 [lm-sensors] [PATCH resend] sensors: Add support for additional Guenter Roeck
2011-03-15 10:27 ` Jean Delvare
2011-03-15 16:23 ` Guenter Roeck
2011-03-15 16:56 ` Jean Delvare
2011-03-15 17:31 ` Guenter Roeck
2011-03-15 17:48 ` Jean Delvare
2011-03-15 18:15 ` Guenter Roeck
2011-03-15 19:44 ` Jean Delvare
2011-03-15 20:17 ` Guenter Roeck
2011-03-15 21:50 ` Jean Delvare
2011-03-15 22:54 ` Guenter Roeck [this message]
2011-03-16 8:16 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110315225415.GA23844@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.