diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2016-05-23 16:25:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-23 17:04:14 -0700 |
commit | 4bc393dbcf1915224e8947211a0ca906f9de7c56 (patch) | |
tree | 6a57bdf813f6d707ed11d8acd4d8312934f09d36 | |
parent | b1503934a5e51e74b2f4c72ad77b33231e7b6953 (diff) | |
download | linux-stable-4bc393dbcf1915224e8947211a0ca906f9de7c56.tar.gz linux-stable-4bc393dbcf1915224e8947211a0ca906f9de7c56.tar.bz2 linux-stable-4bc393dbcf1915224e8947211a0ca906f9de7c56.zip |
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>
-rw-r--r-- | scripts/gdb/linux/cpus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/cpus.py b/scripts/gdb/linux/cpus.py index fc316fb3a3d4..ca11e8df31b6 100644 --- a/scripts/gdb/linux/cpus.py +++ b/scripts/gdb/linux/cpus.py @@ -97,7 +97,7 @@ def cpu_list(mask_name): bits >>= 1 bit += 1 - yield cpu + yield int(cpu) def each_online_cpu(): |