-Change some wording in SPD decoding
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7eb72314ba
commit
725153ec35
@ -601,7 +601,7 @@ sub decode_manufacturer {
|
||||
my $arr_index = shift;
|
||||
my $code = shift;
|
||||
unless ($code) {
|
||||
return "BUGGY SPD";
|
||||
return "Malformed SPD";
|
||||
}
|
||||
return $jedec_ids->[$arr_index]->{$code};
|
||||
}
|
||||
@ -677,7 +677,7 @@ sub decode_spd {
|
||||
my $rethash;
|
||||
print Dumper(@spd);
|
||||
if (($spd[0] & 0xf) > 3) { #TODO: Remove workaround for buggy SPD
|
||||
$rethash->{product}->{extra}=[{value=>'BUGGY SPD',encoding=>3}];
|
||||
$rethash->{product}->{extra}=[{value=>'Malformed SPD (missing leading byte)',encoding=>3}];
|
||||
unshift @spd,3;
|
||||
}
|
||||
$rethash->{product}->{name}=$memtypes{$spd[2]};
|
||||
@ -710,7 +710,7 @@ sub decode_spd {
|
||||
}
|
||||
foreach (@spd[128..145]) {
|
||||
if ($_ & 0b10000000) {
|
||||
$rethash->{product}->{model}="BUGGY SPD";
|
||||
$rethash->{product}->{model}="Malformed SPD";
|
||||
}
|
||||
}
|
||||
unless ($rethash->{product}->{model}) {
|
||||
|
Loading…
Reference in New Issue
Block a user