Skip to content

Commit 5a1df72

Browse files
andy-shevpmladek
authored andcommitted
media: av7110: Switch to use %ptSp
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>
1 parent 0cfc283 commit 5a1df72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/media/av7110/av7110.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static inline void print_time(char *s)
321321
struct timespec64 ts;
322322

323323
ktime_get_real_ts64(&ts);
324-
pr_info("%s(): %lld.%09ld\n", s, (s64)ts.tv_sec, ts.tv_nsec);
324+
pr_info("%s(): %ptSp\n", s, &ts);
325325
#endif
326326
}
327327

0 commit comments

Comments
 (0)