From 69e3c7d9aefb0b1964f82b7afd76c8ed2bb2782b Mon Sep 17 00:00:00 2001 From: eve Date: Thu, 3 Apr 2025 17:01:21 +0100 Subject: [PATCH] Volshell: use built in formatting rather than hex() function --- volatility3/cli/volshell/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/cli/volshell/generic.py b/volatility3/cli/volshell/generic.py index 2021911ae..32a5bd933 100644 --- a/volatility3/cli/volshell/generic.py +++ b/volatility3/cli/volshell/generic.py @@ -636,9 +636,9 @@ class Volshell(interfaces.plugins.PluginInterface): if self.context.layers[self.current_layer].is_valid( value.vol.offset ): - return f"offset: {hex(value.vol.offset)}" + return f"offset: 0x{value.vol.offset:x}" else: - return f"offset: {hex(value.vol.offset)} (unreadable)" + return f"offset: 0x{value.vol.offset:x} (unreadable)" else: # non volobject if value is None: