Skip to content

Commit 69e3c7d

Browse files
committed
Volshell: use built in formatting rather than hex() function
1 parent 61c67b6 commit 69e3c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volatility3/cli/volshell/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ def _display_value(self, value: Any) -> str:
636636
if self.context.layers[self.current_layer].is_valid(
637637
value.vol.offset
638638
):
639-
return f"offset: {hex(value.vol.offset)}"
639+
return f"offset: 0x{value.vol.offset:x}"
640640
else:
641-
return f"offset: {hex(value.vol.offset)} (unreadable)"
641+
return f"offset: 0x{value.vol.offset:x} (unreadable)"
642642
else:
643643
# non volobject
644644
if value is None:

0 commit comments

Comments
 (0)