提交 3b9359cd 编写于 作者: P Peter Krempa

check-symfile: Use pythonesque string formatting instead of perl

Commit d30a1ad0 translated the symbol file checker from perl to
python by doing a literal translation in most cases. Unfortunately one
string formatting operation was not really translated into python
leaving users with non-helpful error:

'Symbol $1 is listed twice'
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 9d6920bd
......@@ -52,7 +52,7 @@ with open(symfile, "r") as fh:
line = line.strip(";")
if line in wantsyms:
print("Symbol $1 is listed twice", file=sys.stderr)
print("Symbol %s is listed twice" % line, file=sys.stderr)
ret = 1
else:
wantsyms[line] = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册