PCI/PTM: Remove spurious "d" from granularity message
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 6 Nov 2019 21:30:48 +0000 (15:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:19:36 +0000 (08:19 +0100)
commit 127a7709495db52a41012deaebbb7afc231dad91 upstream.

The granularity message has an extra "d":

  pci 0000:02:00.0: PTM enabled, 4dns granularity

Remove the "d" so the message is simply "PTM enabled, 4ns granularity".

Fixes: 8b2ec318eece ("PCI: Add PTM clock granularity information")
Link: https://lore.kernel.org/r/20191106222420.10216-2-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Cc: Jonathan Yong <jonathan.yong@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/pcie/ptm.c

index bab8ac63c4f3e0e3682d9c30d7b8b8370a6a86da..3008bba360f354216e4aba113005ca8a43abd80c 100644 (file)
@@ -29,7 +29,7 @@ static void pci_ptm_info(struct pci_dev *dev)
                snprintf(clock_desc, sizeof(clock_desc), ">254ns");
                break;
        default:
-               snprintf(clock_desc, sizeof(clock_desc), "%udns",
+               snprintf(clock_desc, sizeof(clock_desc), "%uns",
                         dev->ptm_granularity);
                break;
        }