]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dma-buf: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:18 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 09:24:13 +0000 (10:24 +0100)
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>
drivers/dma-buf/sync_debug.c

index 67cd69551e42d88c54a70e0f03efe2ff1f084924..9e5d662cd4e8447043c5dfd063a3d9aad3a33643 100644 (file)
@@ -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);