Skip to content

Commit c6e049b

Browse files
andy-shevpmladek
authored andcommitted
dma-buf: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Reviewed-by: Christian König <christian.koenig@amd.com> Acked-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-5-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 98e41fb commit c6e049b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma-buf/sync_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void sync_print_fence(struct seq_file *s,
5959
struct timespec64 ts64 =
6060
ktime_to_timespec64(fence->timestamp);
6161

62-
seq_printf(s, "@%lld.%09ld", (s64)ts64.tv_sec, ts64.tv_nsec);
62+
seq_printf(s, "@%ptSp", &ts64);
6363
}
6464

6565
seq_printf(s, ": %lld", fence->seqno);

0 commit comments

Comments
 (0)