Skip to content

Commit ace3852

Browse files
andy-shevpmladek
authored andcommitted
tracing: Switch to use %ptSp
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>
1 parent 7b040d4 commit ace3852

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kernel/trace/trace_output.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,12 +1467,12 @@ trace_hwlat_print(struct trace_iterator *iter, int flags,
14671467

14681468
trace_assign_type(field, entry);
14691469

1470-
trace_seq_printf(s, "#%-5u inner/outer(us): %4llu/%-5llu ts:%lld.%09ld count:%d",
1470+
trace_seq_printf(s, "#%-5u inner/outer(us): %4llu/%-5llu ts:%ptSp count:%d",
14711471
field->seqnum,
14721472
field->duration,
14731473
field->outer_duration,
1474-
(long long)field->timestamp.tv_sec,
1475-
field->timestamp.tv_nsec, field->count);
1474+
&field->timestamp,
1475+
field->count);
14761476

14771477
if (field->nmi_count) {
14781478
/*

0 commit comments

Comments
 (0)