projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb6e8c2
)
spdxcheck.py: Fix a type error
author
Ding Xiang
<dingxiang@cmss.chinamobile.com>
Fri, 14 Jan 2022 02:40:58 +0000
(10:40 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 15:43:01 +0000
(16:43 +0100)
remove unused variable "col", otherwise there will be a type error
as below:
typeerror: not all arguments converted during string formatting
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Link:
https://lore.kernel.org/r/20220114024058.74536-1-dingxiang@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/spdxcheck.py
patch
|
blob
|
history
diff --git
a/scripts/spdxcheck.py
b/scripts/spdxcheck.py
index
ebd06ae
..
f3be8ed
100755
(executable)
--- a/
scripts/spdxcheck.py
+++ b/
scripts/spdxcheck.py
@@
-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):