Linux: Fix kmsf f-strings

Closes #1496
This commit is contained in:
Mike Auty
2025-01-01 15:23:04 +00:00
parent e0869da092
commit 9c02f0d12a
+2 -2
View File
@@ -149,7 +149,7 @@ class ABCKmsg(ABC):
# This might seem insignificant but it could cause some issues
# when compared with userland tool results or when used in
# timelines.
return f"{nsec / 1000000000:lu}.{(nsec % 1000000000) / 1000:06lu}"
return f"{nsec / 1000000000}.{(nsec % 1000000000) / 1000:06}"
def get_timestamp_in_sec_str(self, obj) -> str:
# obj could be log, printk_log or printk_info
@@ -166,7 +166,7 @@ class ABCKmsg(ABC):
def get_caller_text(self, caller_id):
caller_name = "CPU" if caller_id & 0x80000000 else "Task"
caller = f"{caller_name}({caller_id & ~0x80000000:u})"
caller = f"{caller_name}({int(caller_id & ~0x80000000)})"
return caller
def get_prefix(self, obj) -> Tuple[int, int, str, str]: