From 051fb55e2c185aa60e32cc24742541d4a89239a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 15 Aug 2017 20:34:44 +0200 Subject: [PATCH] misra.py: Reformatting output --- addons/misra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index c3ea97600..70bd9c517 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -27,11 +27,11 @@ def reportError(location, num1, num2): VERIFY_ACTUAL.append(str(location.linenr) + ':' + str(num1) + '.' + str(num2)) else: num = num1 * 100 + num2 + id = 'misra-c2012-' + str(num1) + '.' + str(num2) if num in ruleTexts: - errmsg = ruleTexts[num] + ' [misra-c2012-' + str(num1) + '.' + str(num2) + ']' + errmsg = ruleTexts[num] + ' [' + id + ']' else: - errmsg = 'misra rule ' + str(num1) + '.' + str(num2) +\ - ' violation (use --rule-texts= to get proper output)' + errmsg = 'misra violation (use --rule-texts= to get proper output) [' + id + ']' sys.stderr.write('[' + location.file + ':' + str(location.linenr) + '] ' + errmsg + '\n')