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

e1000e: Switch to use %ptSp



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

Reviewed-by: default avatarAleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-10-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 51d36549
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -229,14 +229,11 @@ static void e1000e_systim_overflow_work(struct work_struct *work)
						     systim_overflow_work.work);
	struct e1000_hw *hw = &adapter->hw;
	struct timespec64 ts;
	u64 ns;

	/* Update the timecounter */
	ns = timecounter_read(&adapter->tc);
	ts = ns_to_timespec64(timecounter_read(&adapter->tc));

	ts = ns_to_timespec64(ns);
	e_dbg("SYSTIM overflow check at %lld.%09lu\n",
	      (long long) ts.tv_sec, ts.tv_nsec);
	e_dbg("SYSTIM overflow check at %ptSp\n", &ts);

	schedule_delayed_work(&adapter->systim_overflow_work,
			      E1000_SYSTIM_OVERFLOW_PERIOD);