Skip to content

Commit 47a5961

Browse files
committed
crash.commands.kmem: fix typing in print_zones
Mypy doesn't always convert from gdb.Value to int, so do it explicitly. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
1 parent d7c3049 commit 47a5961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crash/commands/kmem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def print_zones(self) -> None:
166166
zone_struct = zone.gdb_obj
167167

168168
print("NODE: %d ZONE: %d ADDR: %x NAME: \"%s\"" %
169-
(zone_struct["node"], zone.zid, zone_struct.address,
170-
zone_struct["name"].string()))
169+
(int(zone_struct["node"]), zone.zid,
170+
int(zone_struct.address), zone_struct["name"].string()))
171171

172172
if not zone.is_populated():
173173
print(" [unpopulated]")

0 commit comments

Comments
 (0)