All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] abituguru3: no Abit uGuru3 found
Date: Fri, 09 Jan 2009 13:08:01 +0000	[thread overview]
Message-ID: <49674C31.5090903@hhs.nl> (raw)
In-Reply-To: <49657F3B.3060607@NickAndBarb.net>

Alistair John Strachan wrote:
> On Thursday 08 January 2009 18:09:40 Alistair John Strachan wrote:
>> On Thursday 08 January 2009 17:09:43 Jean Delvare wrote:
> [snip]
>>> Might be worth reading this discussion thread again:
>>> http://lists.lm-sensors.org/pipermail/lm-sensors/2008-October/024522.html
>>>
>>> We gave up on fixing it back then, but apparently there really is a
>>> need. Alistair, do you have a patch?
> 
> Find attached an alternative method which solves (I believe only potential) 
> problems Jean pointed out at the time of the last thread. I think it's safe.
> 
> I've compromised by finding the first open bracket (it's fine if there are no 
> brackets) and trimming any space from the sub-string. For example, here are 
> the existing transformations:
> 
> "AW9D-MAX       (Intel i975-ICH7)" -> "AW9D-MAX"
> "AT8 32X(ATI RD580-ULI M1575)" -> "AT8 32X"
> "IP35 Pro(Intel P35-ICH9R)" -> "IP35 Pro"
> "IN9 32X MAX(680i-MCP55PXE)" -> "IN9 32X MAX" (adding RSN)
> 
> And here are some hypothetical ones:
> 
> "AW9D      (Blah)" -> "AW9D"
> "Abit Magic" -> "Abit Magic"
> 
> In the AW9D case, "AW9D" and "AW9D-MAX" are not considered to be the same 
> motherboard, because the sub-string's length must exactly match that of the 
> string in the motherboard entry. This is different to regular "strncasecmp" 
> where they would be considered the same.
> 
> Find the patch attached. I'll probably go for this version if nobody finds any 
> issues with it, otherwise the original patch I sent out is sufficient (since 
> at the moment there are no boards falling into this hypothetical trap).

Good catch Jean!

The new version looks good to me.

Regards,

Hans


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2009-01-09 13:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08  4:21 [lm-sensors] abituguru3: no Abit uGuru3 found Nick Pasich
2009-01-08  7:49 ` Hans de Goede
2009-01-08 11:25 ` Nick Pasich
2009-01-08 12:02 ` Hans de Goede
2009-01-08 17:09 ` Jean Delvare
2009-01-08 18:09 ` Alistair John Strachan
2009-01-08 18:53 ` Nick Pasich
2009-01-08 19:21 ` Hans de Goede
2009-01-08 19:45 ` Jean Delvare
2009-01-08 19:53 ` Alistair John Strachan
2009-01-08 19:58 ` Alistair John Strachan
2009-01-08 22:22 ` Hans de Goede
2009-01-09 13:08 ` Hans de Goede [this message]
2009-01-12  9:06 ` 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=49674C31.5090903@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --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.