diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-11-13 15:32:29 +0100 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2025-11-19 12:26:07 +0100 |
| commit | 3bc02fe0b82acaf660513789b9ae081a71cd4166 (patch) | |
| tree | b47b89242343756d75431d3e0f8f81bf04abff21 | |
| parent | b8edf4fbb285b7adf83f4c25e779d81c33238c3a (diff) | |
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>
| -rw-r--r-- | drivers/pci/endpoint/functions/pci-epf-test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c index e091193bd8a8..b557d843abea 100644 --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c @@ -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, |
