From b7af13ce63e77914837524c4dfcf46d729ad32ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 15 Aug 2017 21:44:43 +0200 Subject: [PATCH] cert.py: reformat output again --- addons/cert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/cert.py b/addons/cert.py index f098c50a7..939b64e96 100644 --- a/addons/cert.py +++ b/addons/cert.py @@ -67,7 +67,7 @@ def exp42(data): if token.astOperand1.str == 'memcmp' and (isLocalUnpackedStruct(arg1) or isLocalUnpackedStruct(arg2)): reportError( token, 'style', "Comparison of struct padding data " + - "(fix either by packing the struct using '#pragma pack' or by rewriting the comparison)", 'EXP42-C') + "(fix either by packing the struct using '#pragma pack' or by rewriting the comparison)", 'cert-EXP42-C') # EXP46-C @@ -77,7 +77,7 @@ def exp46(data): for token in data.tokenlist: if isBitwiseOp(token) and (isComparisonOp(token.astOperand1) or isComparisonOp(token.astOperand2)): reportError( - token, 'style', 'Bitwise operator is used with a Boolean-like operand', 'EXP46-C') + token, 'style', 'Bitwise operator is used with a Boolean-like operand', 'cert-EXP46-c') for arg in sys.argv[1:]: print('Checking ' + arg + '...')