|
@@ -51,10 +51,10 @@ class LxDmesg(gdb.Command):
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
text_len = utils.read_u16(log_buf[pos + 10:pos + 12])
|
|
text_len = utils.read_u16(log_buf[pos + 10:pos + 12])
|
|
|
- text = log_buf[pos + 16:pos + 16 + text_len]
|
|
|
|
|
|
|
+ text = log_buf[pos + 16:pos + 16 + text_len].decode()
|
|
|
time_stamp = utils.read_u64(log_buf[pos:pos + 8])
|
|
time_stamp = utils.read_u64(log_buf[pos:pos + 8])
|
|
|
|
|
|
|
|
- for line in memoryview(text).tobytes().splitlines():
|
|
|
|
|
|
|
+ for line in text.splitlines():
|
|
|
gdb.write("[{time:12.6f}] {line}\n".format(
|
|
gdb.write("[{time:12.6f}] {line}\n".format(
|
|
|
time=time_stamp / 1000000000.0,
|
|
time=time_stamp / 1000000000.0,
|
|
|
line=line))
|
|
line=line))
|