[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dmidecode] [PATCH] dmidecode: additions from smbios 2.6.1 spec upda
From: |
Jarod Wilson |
Subject: |
Re: [dmidecode] [PATCH] dmidecode: additions from smbios 2.6.1 spec update |
Date: |
Fri, 28 Aug 2009 11:23:35 -0400 |
User-agent: |
KMail/1.12.0 (Linux/2.6.29.6-217.2.8.fc11.x86_64; KDE/4.3.0; x86_64; ; ) |
On Friday 28 August 2009 11:05:06 Jean Delvare wrote:
> Hi Jarod,
>
> On Thu, 27 Aug 2009 09:25:40 -0400, Jarod Wilson wrote:
> > dmidecode: additions from smbios 2.6.1 spec update
> >
> > Tested on an HP DL360G6 with LGA1366 socket cpus, PCI-E Gen 2 slots
> > and DDR3 memory, no longer returns any <OUT OF SPEC> info.
> >
> > Signed-off-by: Jarod Wilson <address@hidden>
> >
>
> Review:
...
> > @@ -1383,10 +1402,15 @@ static const char *dmi_cache_associativi
> > "4-way Set-associative",
> > "Fully Associative",
> > "8-way Set-associative",
> > - "16-way Set-associative" /* 0x08 */
> > + "16-way Set-associative"
> > + "12-way Set-associative"
> > + "24-way Set-associative"
> > + "32-way Set-associative"
> > + "48-way Set-associative"
> > + "64-way Set-associative" /* 0x0D */
>
> There's a bug here: you forgot the trailing comma at the end of each
> line, so the compiler will see a single string. This string-splitting
> feature of the C language is also a call for bugs, it seems.
Gah. Copy-n-paste fail. Coupled with the compiler not complaining, and
me not having a test system w/any of the newer associativities to make
dmidecode go boom. Good catch, fixing that up locally...
> Other than that, it looks good to me (although I admit I did not
> cross-check with the SMBIOS specifications). Thanks for your
> contribution!
No problem. Reasonably sure I got everything else right, but its also
possible there are things I neglected to add...
--
Jarod Wilson
address@hidden