mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 58/84] scripts/gdb: cast CPU numbers to integer
@ 2016-05-23 23:25 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-05-23 23:25 UTC (permalink / raw)
  To: torvalds, mm-commits, akpm, jan.kiszka

From: Jan Kiszka <jan.kiszka@siemens.com>
Subject: 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>
---

 scripts/gdb/linux/cpus.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN scripts/gdb/linux/cpus.py~scripts-gdb-cast-cpu-numbers-to-integer scripts/gdb/linux/cpus.py
--- a/scripts/gdb/linux/cpus.py~scripts-gdb-cast-cpu-numbers-to-integer
+++ a/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():
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-23 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23 23:25 [patch 58/84] scripts/gdb: cast CPU numbers to integer akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).