-Report unrecognized DIMM manufacturers in output

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-21 17:05:28 +00:00
parent cc70fb9607
commit b0369a94f4

View File

@ -603,7 +603,11 @@ sub decode_manufacturer {
unless ($code) {
return "Malformed SPD";
}
return $jedec_ids->[$arr_index]->{$code};
if (defined $jedec_ids->[$arr_index]->{$code}) {
return $jedec_ids->[$arr_index]->{$code};
} else {
return "Unrecognized manufacturer: $arr_index, $code";
}
}