diff options
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
-rw-r--r-- | scripts/gdb/linux/dmesg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/dmesg.py b/scripts/gdb/linux/dmesg.py index 5afd1098e33a..f5a030333dfd 100644 --- a/scripts/gdb/linux/dmesg.py +++ b/scripts/gdb/linux/dmesg.py | |||
@@ -24,7 +24,7 @@ class LxDmesg(gdb.Command): | |||
24 | 24 | ||
25 | def invoke(self, arg, from_tty): | 25 | def invoke(self, arg, from_tty): |
26 | log_buf_addr = int(str(gdb.parse_and_eval( | 26 | log_buf_addr = int(str(gdb.parse_and_eval( |
27 | "'printk.c'::log_buf")).split()[0], 16) | 27 | "(void *)'printk.c'::log_buf")).split()[0], 16) |
28 | log_first_idx = int(gdb.parse_and_eval("'printk.c'::log_first_idx")) | 28 | log_first_idx = int(gdb.parse_and_eval("'printk.c'::log_first_idx")) |
29 | log_next_idx = int(gdb.parse_and_eval("'printk.c'::log_next_idx")) | 29 | log_next_idx = int(gdb.parse_and_eval("'printk.c'::log_next_idx")) |
30 | log_buf_len = int(gdb.parse_and_eval("'printk.c'::log_buf_len")) | 30 | log_buf_len = int(gdb.parse_and_eval("'printk.c'::log_buf_len")) |