diff options
author | khali <khali> | 2009-06-19 11:55:34 +0000 |
---|---|---|
committer | khali <khali> | 2009-06-19 11:55:34 +0000 |
commit | 77ae65edbb966df1216fd99afbca56c276e73db3 (patch) | |
tree | d83b71299ca84c35ca0a3ad35ff0d5a72b707a90 /dmidecode.c | |
parent | 5cff90ab83c3b5c8cc7c60cb547d1f3b6fb2b641 (diff) | |
download | dmidecode-77ae65edbb966df1216fd99afbca56c276e73db3.tar.gz |
Fix decoding of memory array capacity. A maximum capacity of 128 GB would
erroneously be reported as Unknown, while a unknown capacity would be
erroneously reported as 2048 GB. Bug reported by Lin Li (HP).
Diffstat (limited to 'dmidecode.c')
-rw-r--r-- | dmidecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dmidecode.c b/dmidecode.c index d55bc63..a52afd6 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -2007,7 +2007,7 @@ static const char *dmi_memory_array_ec_type(u8 code) static void dmi_memory_array_capacity(u32 code) { - if (code == 0x8000000) + if (code == 0x80000000) printf(" Unknown"); else { |