summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2017-06-03 15:47:55 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-03 15:48:42 -0500
commit4952aa6b52cad69e67db53a7398f15920e7929b3 (patch)
treeafbc5aee397ad2629eb33e155209c4d87ef6aa2f /tools
parentbb3e57af66fc4a65f18af4154afcf17eee4091ee (diff)
downloadphosphor-logging-4952aa6b52cad69e67db53a7398f15920e7929b3.tar.gz
phosphor-logging-4952aa6b52cad69e67db53a7398f15920e7929b3.zip
elog-gen: python3 fixes for print
In python3 print requires () wrapping around parameters. Change-Id: I830ef0d0e8c9e42c1157b708153bf96599346977 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/elog-gen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/elog-gen.py b/tools/elog-gen.py
index 26be78f..7f66fab 100755
--- a/tools/elog-gen.py
+++ b/tools/elog-gen.py
@@ -195,8 +195,8 @@ def get_elog_data(i_elog_yaml,
#for all the errors in error yaml file
for error in ifile:
if 'name' not in error:
- print "Error - Did not find name in entry %s in file %s " % (
- str(error), i_elog_yaml)
+ print("Error - Did not find name in entry %s in file %s " % (
+ str(error), i_elog_yaml))
exit(1)
fullname = i_namespace.replace('/', '.') + ('.') + error['name']
errors.append(fullname)
@@ -221,7 +221,7 @@ def get_elog_data(i_elog_yaml,
break
if match is None:
- print "Error - Did not find name in" + i_elog_meta_yaml
+ print("Error - Did not find name in" + i_elog_meta_yaml)
continue
error_lvl[fullname] = match.get('level', 'ERR')
OpenPOWER on IntegriCloud