From: Andy Shevchenko Date: Thu, 13 Nov 2025 14:32:18 +0000 (+0100) Subject: dma-buf: Switch to use %ptSp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6e049b6212b9af146074a10bb8949437bd4e4ed;p=thirdparty%2Flinux.git 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 Acked-by: Sumit Semwal Signed-off-by: Andy Shevchenko Link: https://patch.msgid.link/20251113150217.3030010-5-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek --- diff --git a/drivers/dma-buf/sync_debug.c b/drivers/dma-buf/sync_debug.c index 67cd69551e42d..9e5d662cd4e84 100644 --- a/drivers/dma-buf/sync_debug.c +++ b/drivers/dma-buf/sync_debug.c @@ -59,7 +59,7 @@ static void sync_print_fence(struct seq_file *s, struct timespec64 ts64 = ktime_to_timespec64(fence->timestamp); - seq_printf(s, "@%lld.%09ld", (s64)ts64.tv_sec, ts64.tv_nsec); + seq_printf(s, "@%ptSp", &ts64); } seq_printf(s, ": %lld", fence->seqno);