linux: VMCoreInfo API: AARCH64 uses NUMBER() with hex values. Fortunately, includes the 0x prefix, allowing the parser to still handle these cases correctly

This commit is contained in:
Gustavo Moreira
2024-11-18 18:18:14 +11:00
parent d80ef55325
commit 13729ac25f
@@ -869,9 +869,9 @@ class VMCoreInfo(interfaces.configuration.VersionableInterface):
if key.startswith("SYMBOL(") or key == "KERNELOFFSET":
return int(value, 16)
elif key.startswith(("NUMBER(", "LENGTH(", "SIZE(", "OFFSET(")):
return int(value)
return int(value, 0)
elif key == "PAGESIZE":
return int(value)
return int(value, 0)
# Default, as string
return value