]> Gentwo Git Trees - linux/.git/commitdiff
media: av7110: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:26 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 11:26:06 +0000 (12:26 +0100)
Use %ptSp instead of open coded variants to print content of
struct timespec64 in human readable format.

Acked-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-13-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/staging/media/av7110/av7110.c

index bc9a2a40afcb5483bdac584aa64c2babcd663089..602342d1174f31064e81778c3a619b0875a311ff 100644 (file)
@@ -321,7 +321,7 @@ static inline void print_time(char *s)
        struct timespec64 ts;
 
        ktime_get_real_ts64(&ts);
-       pr_info("%s(): %lld.%09ld\n", s, (s64)ts.tv_sec, ts.tv_nsec);
+       pr_info("%s(): %ptSp\n", s, &ts);
 #endif
 }