Skip to content

Commit

Permalink
scripts/gdb: cast CPU numbers to integer
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jan-kiszka authored and torvalds committed May 24, 2016
1 parent b150393 commit 4bc393d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gdb/linux/cpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def cpu_list(mask_name):
bits >>= 1
bit += 1

yield cpu
yield int(cpu)


def each_online_cpu():
Expand Down

0 comments on commit 4bc393d

Please sign in to comment.