Commit b1e7286e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Petr Mladek
Browse files

pps: Switch to use %ptSp



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

Acked-by: default avatarRodolfo Giometti <giometti@enneenne.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-17-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 3bc02fe0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -80,8 +80,7 @@ static enum hrtimer_restart hrtimer_event(struct hrtimer *timer)
	/* check if we are late */
	if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) {
		local_irq_restore(flags);
		pr_err("we are late this time %lld.%09ld\n",
				(s64)ts1.tv_sec, ts1.tv_nsec);
		pr_err("we are late this time %ptSp\n", &ts1);
		goto done;
	}

+1 −2
Original line number Diff line number Diff line
@@ -166,8 +166,7 @@ void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event,
	/* check event type */
	BUG_ON((event & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR)) == 0);

	dev_dbg(&pps->dev, "PPS event at %lld.%09ld\n",
			(s64)ts->ts_real.tv_sec, ts->ts_real.tv_nsec);
	dev_dbg(&pps->dev, "PPS event at %ptSp\n", &ts->ts_real);

	timespec_to_pps_ktime(&ts_real, ts->ts_real);