提交 4bc393db 编写于 作者: J Jan Kiszka 提交者: Linus Torvalds

scripts/gdb: cast CPU numbers to integer

We won't see more than 2 billion CPUs any time soon, and having cpu_list
return long makes the output of lx-cpus a bit ugly.

Link: http://lkml.kernel.org/r/dcb45c3b0a59e0fd321fa56ff7aa398458c689b3.1462865983.git.jan.kiszka@siemens.comSigned-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b1503934
...@@ -97,7 +97,7 @@ def cpu_list(mask_name): ...@@ -97,7 +97,7 @@ def cpu_list(mask_name):
bits >>= 1 bits >>= 1
bit += 1 bit += 1
yield cpu yield int(cpu)
def each_online_cpu(): def each_online_cpu():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册