]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tracing: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:35 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 11:30:11 +0000 (12:30 +0100)
Use %ptSp instead of open coded variants to print content of
struct timespec64 in human readable format.

Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-22-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/trace/trace_output.c

index 97db0b0ccf3e8c47b6e0f2737b6206de0d35e127..14f86f0a8bc7b576278c8b231d9609030847f9fc 100644 (file)
@@ -1467,12 +1467,12 @@ trace_hwlat_print(struct trace_iterator *iter, int flags,
 
        trace_assign_type(field, entry);
 
-       trace_seq_printf(s, "#%-5u inner/outer(us): %4llu/%-5llu ts:%lld.%09ld count:%d",
+       trace_seq_printf(s, "#%-5u inner/outer(us): %4llu/%-5llu ts:%ptSp count:%d",
                         field->seqnum,
                         field->duration,
                         field->outer_duration,
-                        (long long)field->timestamp.tv_sec,
-                        field->timestamp.tv_nsec, field->count);
+                        &field->timestamp,
+                        field->count);
 
        if (field->nmi_count) {
                /*