diff options
author | Dzuy Nguyen <dzuy@us.ibm.com> | 2017-05-19 15:39:46 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-05-25 15:56:25 -0400 |
commit | 1990ea7f4877e034ff687892de637937e99f0c7b (patch) | |
tree | 203afb69af0748f05d969f5767143f5673065ff0 /src/usr/targeting/attroverride/attrTextToBinaryBlob.C | |
parent | 9fde160efb9f749917af79c00eb2134d0982d3ef (diff) | |
download | blackbird-hostboot-1990ea7f4877e034ff687892de637937e99f0c7b.tar.gz blackbird-hostboot-1990ea7f4877e034ff687892de637937e99f0c7b.zip |
Support signed attributes with override tool
Change-Id: Ib82466e9a2b8da9c436707e463dd2669d59aedd7
RTC: 144142
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40772
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/attroverride/attrTextToBinaryBlob.C')
-rwxr-xr-x | src/usr/targeting/attroverride/attrTextToBinaryBlob.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/targeting/attroverride/attrTextToBinaryBlob.C b/src/usr/targeting/attroverride/attrTextToBinaryBlob.C index 7ec1e22c3..19090051e 100755 --- a/src/usr/targeting/attroverride/attrTextToBinaryBlob.C +++ b/src/usr/targeting/attroverride/attrTextToBinaryBlob.C @@ -950,7 +950,9 @@ bool AttrTextToBinaryBlob::attrFileAttrLinesToData( } } - if ((l_valString[0] == '0') && (l_valString[1] == 'x')) + // Expect 0x<> for unsigned and -<> for signed attribute + if ((l_valString[0] == '0') && (l_valString[1] == 'x') || + (l_valString[0] == '-')) { // Value string is a value l_attrVal = strtoull(l_valString.c_str(), NULL, 0); |