Skip to content

Commit 4bc393d

Browse files
jan-kiszkatorvalds
authored andcommitted
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.com Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b150393 commit 4bc393d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/gdb/linux/cpus.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def cpu_list(mask_name):
9797
bits >>= 1
9898
bit += 1
9999

100-
yield cpu
100+
yield int(cpu)
101101

102102

103103
def each_online_cpu():

0 commit comments

Comments
 (0)