]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: epf-test: Switch to use %ptSp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 14:32:29 +0000 (15:32 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 11:26:07 +0000 (12:26 +0100)
Use %ptSp instead of open coded variants to print content of
struct timespec64 in human readable format.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113150217.3030010-16-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/pci/endpoint/functions/pci-epf-test.c

index e091193bd8a8a13aeb45c8b8ab35b0f43912eca9..b557d843abea1860d2e7dd23ed9d80572de40c07 100644 (file)
@@ -326,9 +326,8 @@ static void pci_epf_test_print_rate(struct pci_epf_test *epf_test,
                rate = div64_u64(size * NSEC_PER_SEC, ns * 1000);
 
        dev_info(&epf_test->epf->dev,
-                "%s => Size: %llu B, DMA: %s, Time: %llu.%09u s, Rate: %llu KB/s\n",
-                op, size, dma ? "YES" : "NO",
-                (u64)ts.tv_sec, (u32)ts.tv_nsec, rate);
+                "%s => Size: %llu B, DMA: %s, Time: %ptSp s, Rate: %llu KB/s\n",
+                op, size, dma ? "YES" : "NO", &ts, rate);
 }
 
 static void pci_epf_test_copy(struct pci_epf_test *epf_test,