Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pps: Switch to use %ptSp

Use %ptSp instead of open coded variants to print content of
struct timespec64 in human readable format.

Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-17-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

Andy Shevchenko and committed by
Petr Mladek
b1e7286e 3bc02fe0

+2 -4
+1 -2
drivers/pps/generators/pps_gen_parport.c
··· 80 80 /* check if we are late */ 81 81 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { 82 82 local_irq_restore(flags); 83 - pr_err("we are late this time %lld.%09ld\n", 84 - (s64)ts1.tv_sec, ts1.tv_nsec); 83 + pr_err("we are late this time %ptSp\n", &ts1); 85 84 goto done; 86 85 } 87 86
+1 -2
drivers/pps/kapi.c
··· 166 166 /* check event type */ 167 167 BUG_ON((event & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR)) == 0); 168 168 169 - dev_dbg(&pps->dev, "PPS event at %lld.%09ld\n", 170 - (s64)ts->ts_real.tv_sec, ts->ts_real.tv_nsec); 169 + dev_dbg(&pps->dev, "PPS event at %ptSp\n", &ts->ts_real); 171 170 172 171 timespec_to_pps_ktime(&ts_real, ts->ts_real); 173 172