Skip to content

Commit 81e3db7

Browse files
andy-shevpmladek
authored andcommitted
e1000e: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-10-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 51d3654 commit 81e3db7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • drivers/net/ethernet/intel/e1000e

drivers/net/ethernet/intel/e1000e/ptp.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,11 @@ static void e1000e_systim_overflow_work(struct work_struct *work)
229229
systim_overflow_work.work);
230230
struct e1000_hw *hw = &adapter->hw;
231231
struct timespec64 ts;
232-
u64 ns;
233232

234233
/* Update the timecounter */
235-
ns = timecounter_read(&adapter->tc);
234+
ts = ns_to_timespec64(timecounter_read(&adapter->tc));
236235

237-
ts = ns_to_timespec64(ns);
238-
e_dbg("SYSTIM overflow check at %lld.%09lu\n",
239-
(long long) ts.tv_sec, ts.tv_nsec);
236+
e_dbg("SYSTIM overflow check at %ptSp\n", &ts);
240237

241238
schedule_delayed_work(&adapter->systim_overflow_work,
242239
E1000_SYSTIM_OVERFLOW_PERIOD);

0 commit comments

Comments
 (0)