[PATCH 11/18] scripts/gdb: Cast CPU numbers to integer

From: Jan Kiszka
Date: Tue May 10 2016 - 03:48:54 EST


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.

Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
---
scripts/gdb/linux/cpus.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gdb/linux/cpus.py b/scripts/gdb/linux/cpus.py
index fc316fb..ca11e8d 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():
--
2.1.4