提交 4a0a1995 编写于 作者: Z zhujun2

spdxcheck.py: Fix a type error

mainline inclusion
from mainline-v6.4-rc2
commit 28c9f3f9
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7E2XC
CVE:NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.4-rc2&id=28c9f3f9a01d954d8357bdb68fbe36255997bf14

-----------------------------
remove unused variable "col", otherwise there will be a type error as below:

typeerror: not all arguments converted during string formatting
Signed-off-by: NDing Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20220114024058.74536-1-dingxiang@cmss.chinamobile.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Nzhujun2 <zhujun2_yewu@cmss.chinamobile.com>
上级 6a895a1b
......@@ -200,7 +200,7 @@ class id_parser(object):
tok = pe.tok.value
sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
else:
sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, col, pe.txt))
sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, pe.txt))
self.spdx_errors += 1
def scan_git_tree(tree):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册