aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/gdb/string.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-04 12:01:01 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-04 12:01:01 +0200
commit78e42a1b6e0a857865be1e60f82871ac13c91bb1 (patch)
tree34cc53f3367b660320a0be6aa1c0c451135f83e0 /libs/kstd/gdb/string.py
parent1246e00478fb5ab2a357de17066fd8738395d9f1 (diff)
downloadkernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.tar.xz
kernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.zip
debug: improve pretty printer implementations
Diffstat (limited to 'libs/kstd/gdb/string.py')
-rw-r--r--libs/kstd/gdb/string.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/kstd/gdb/string.py b/libs/kstd/gdb/string.py
index 8230b21..2688061 100644
--- a/libs/kstd/gdb/string.py
+++ b/libs/kstd/gdb/string.py
@@ -4,10 +4,10 @@ import gdb
class KstdStringPrinter:
def __init__(self, val):
- self.val = val
+ self.__val = val
def to_string(self):
- storage = self.val["m_storage"]
+ storage = self.__val["m_storage"]
storage_size = int(storage["m_size"])
if storage_size <= 0: