elog-gen: python3 fixes for print
In python3 print requires () wrapping around parameters.
Change-Id: I830ef0d0e8c9e42c1157b708153bf96599346977
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
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 @@
#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 @@
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')