Commit ace38521 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Petr Mladek
Browse files

tracing: Switch to use %ptSp



Use %ptSp instead of open coded variants to print content of
struct timespec64 in human readable format.

Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-22-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 7b040d45
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {
		/*