Skip to content

Commit 1990ea7

Browse files
Dzuy Nguyendcrowell77
authored andcommitted
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>
1 parent 9fde160 commit 1990ea7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/usr/targeting/attroverride/attrTextToBinaryBlob.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,9 @@ bool AttrTextToBinaryBlob::attrFileAttrLinesToData(
950950
}
951951
}
952952

953-
if ((l_valString[0] == '0') && (l_valString[1] == 'x'))
953+
// Expect 0x<> for unsigned and -<> for signed attribute
954+
if ((l_valString[0] == '0') && (l_valString[1] == 'x') ||
955+
(l_valString[0] == '-'))
954956
{
955957
// Value string is a value
956958
l_attrVal = strtoull(l_valString.c_str(), NULL, 0);

0 commit comments

Comments
 (0)