Remove SPD dump (default output) and fix manufacturer id decode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6043b7a74b
commit
1ba7432035
@ -619,6 +619,7 @@ sub decode_manufacturer {
|
||||
}
|
||||
];
|
||||
my $arr_index = shift;
|
||||
$arr_index = $arr_index & 0x7f;
|
||||
my $code = shift;
|
||||
unless ($code) {
|
||||
return "Malformed SPD";
|
||||
@ -749,11 +750,11 @@ sub decode_spd {
|
||||
push @{$rethash->{product}->{extra}},"CRC Invalid!";
|
||||
}
|
||||
}
|
||||
my $rawspd="SPD Dump: ";
|
||||
foreach (@spd) {
|
||||
$rawspd .= sprintf("%02X ",$_);
|
||||
}
|
||||
push @{$rethash->{product}->{extra}},$rawspd;
|
||||
#my $rawspd="SPD Dump: ";
|
||||
#foreach (@spd) {
|
||||
# $rawspd .= sprintf("%02X ",$_);
|
||||
#}
|
||||
#push @{$rethash->{product}->{extra}},$rawspd;
|
||||
} else {
|
||||
$rethash->{product}->{model}="Unrecognized SPD";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user