]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
igb: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:24 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 11:26:06 +0000 (12:26 +0100)
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-11-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/net/ethernet/intel/igb/igb_ptp.c

index a7876882aeaf2b2a7fb9ec6ff5c83d8a1b06008a..bd85d02ecadd86602e1e3ebf5c54a271602dd77d 100644 (file)
@@ -840,14 +840,11 @@ static void igb_ptp_overflow_check(struct work_struct *work)
        struct igb_adapter *igb =
                container_of(work, struct igb_adapter, ptp_overflow_work.work);
        struct timespec64 ts;
-       u64 ns;
 
        /* Update the timecounter */
-       ns = timecounter_read(&igb->tc);
+       ts = ns_to_timespec64(timecounter_read(&igb->tc));
 
-       ts = ns_to_timespec64(ns);
-       pr_debug("igb overflow check at %lld.%09lu\n",
-                (long long) ts.tv_sec, ts.tv_nsec);
+       pr_debug("igb overflow check at %ptSp\n", &ts);
 
        schedule_delayed_work(&igb->ptp_overflow_work,
                              IGB_SYSTIM_OVERFLOW_PERIOD);