Skip to content

Commit 3bc02fe

Browse files
andy-shevpmladek
authored andcommitted
PCI: epf-test: Switch to use %ptSp
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>
1 parent b8edf4f commit 3bc02fe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/pci/endpoint/functions/pci-epf-test.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,8 @@ static void pci_epf_test_print_rate(struct pci_epf_test *epf_test,
326326
rate = div64_u64(size * NSEC_PER_SEC, ns * 1000);
327327

328328
dev_info(&epf_test->epf->dev,
329-
"%s => Size: %llu B, DMA: %s, Time: %llu.%09u s, Rate: %llu KB/s\n",
330-
op, size, dma ? "YES" : "NO",
331-
(u64)ts.tv_sec, (u32)ts.tv_nsec, rate);
329+
"%s => Size: %llu B, DMA: %s, Time: %ptSp s, Rate: %llu KB/s\n",
330+
op, size, dma ? "YES" : "NO", &ts, rate);
332331
}
333332

334333
static void pci_epf_test_copy(struct pci_epf_test *epf_test,

0 commit comments

Comments
 (0)