summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/xmltohb/xmltohb.pl
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2013-11-12 12:06:56 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-11-14 15:04:10 -0600
commitd0a012c5a6ad3cc0fc779c26391c64376f070e49 (patch)
tree4f271c58bd8b78cacbc189162891420f908d7e1f /src/usr/targeting/common/xmltohb/xmltohb.pl
parentf121e23882ab3f25c76e409f001985e43ab821c3 (diff)
downloadtalos-hostboot-d0a012c5a6ad3cc0fc779c26391c64376f070e49.tar.gz
talos-hostboot-d0a012c5a6ad3cc0fc779c26391c64376f070e49.zip
Fix multinode attribute corruption and increase supported nodes
- Set max supported nodes to 2 instead of 1 - Fixed attribute size computations in attribute compiler Change-Id: I4449a1a145fae346b3919a2e11ef40a568dabea0 CMVC: 905848 CQ: SW233585 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/7191 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common/xmltohb/xmltohb.pl')
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/xmltohb.pl41
1 files changed, 4 insertions, 37 deletions
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl
index e2fa6e6f1..2a59338b8 100755
--- a/src/usr/targeting/common/xmltohb/xmltohb.pl
+++ b/src/usr/targeting/common/xmltohb/xmltohb.pl
@@ -2555,15 +2555,7 @@ sub writeAttrMetadataMapCFile{
my $keySize = "ATTR_"."$key"."_type";
if(exists $finalAttrhash{$key}->{simpleType})
{
- if(exists $finalAttrhash{$key}->{simpleType}->{string})
- {
- if(exists $finalAttrhash{$key}->{simpleType}->{string}->
- {sizeInclNull})
- {
- $keySize = "$keySize"."[". $finalAttrhash{$key}->
- {simpleType}->{string}->{sizeInclNull} . "]";
- }
- }
+ # Nothing to do
}
elsif(!(exists $finalAttrhash{$key}->{complexType}) &&
!(exists $finalAttrhash{$key}->{nativeType}))
@@ -3262,34 +3254,9 @@ sub writeAttrSizeMapCFile{
{
# we have the attr here.. calculate the size
my $keyVal = "ATTR_"."$key"."_type";
- if(exists $attr->{simpleType})
- {
- if(exists $attr->{simpleType}->{array})
- {
- my @splitArrSize = split(',',
- $attr->{simpleType}->{array});
- foreach my $num (@splitArrSize)
- {
- $keyVal = "$keyVal"."[$num]";
- }
- }
- elsif(exists $attr->{simpleType}->{string})
- {
- if(exists $attr->{simpleType}->{string}->
- {sizeInclNull})
- {
- $keyVal = "$keyVal" . "[" .
- $attr->{simpleType}->{string}->
- {sizeInclNull} . "]";
- }
- }
- $finalAttrhash{$key} = $keyVal;
- }
- elsif(exists $attr->{complexType})
- {
- $finalAttrhash{$key} = $keyVal;
- }
- elsif(exists $attr->{nativeType})
+ if( (exists $attr->{simpleType}) ||
+ (exists $attr->{complexType}) ||
+ (exists $attr->{nativeType}) )
{
$finalAttrhash{$key} = $keyVal;
}
OpenPOWER on IntegriCloud