[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1342720992.1988.24.camel@joe2Laptop>
Date: Thu, 19 Jul 2012 11:03:12 -0700
From: Joe Perches <joe@...ches.com>
To: Betty Dall <betty.dall@...com>
Cc: trivial@...nel.org, linux-kernel@...r.kernel.org,
linux-rdma@...r.kernel.org, infinipath@...gic.com,
roland@...nel.org, sean.hefty@...el.com, hal.rosenstock@...il.com
Subject: Re: [PATCH] [Trivial] qib: fix an incorrect message
On Thu, 2012-07-19 at 13:34 -0600, Betty Dall wrote:
> There is a cut and paste typo in the function qib_pci_slot_reset() where
> it prints that the "link_reset" function is called rather than the
> "slot_reset" function. This makes the message misleading.
Hi Betty.
> diff --git a/drivers/infiniband/hw/qib/qib_pcie.c b/drivers/infiniband/hw/qib/qib_pcie.c
[]
> @@ -725,7 +725,7 @@ qib_pci_mmio_enabled(struct pci_dev *pdev)
> static pci_ers_result_t
> qib_pci_slot_reset(struct pci_dev *pdev)
> {
> - qib_devinfo(pdev, "QIB link_reset function called, ignored\n");
> + qib_devinfo(pdev, "QIB slot_reset function called, ignored\n");
These sorts of typos can be avoided by using "%s: ", __func__
qib_devinfo(pdev, "QIB %s: called, ignored\n", __func__);
cheers, Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists