* [PATCH] pci: __FUNCTION__ is gcc-specific, use __func__
@ 2009-01-08 0:22 Harvey Harrison
2009-01-16 18:17 ` Jesse Barnes
0 siblings, 1 reply; 2+ messages in thread
From: Harvey Harrison @ 2009-01-08 0:22 UTC (permalink / raw)
To: Jesse Barnes; +Cc: Linus Torvalds, LKML
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
I guess checkpatch isn't a string enough warning :-/
drivers/pci/pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index c12f6c7..779f749 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -651,7 +651,7 @@ static int pci_save_pcie_state(struct pci_dev *dev)
save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP);
if (!save_state) {
- dev_err(&dev->dev, "buffer not found in %s\n", __FUNCTION__);
+ dev_err(&dev->dev, "buffer not found in %s\n", __func__);
return -ENOMEM;
}
cap = (u16 *)&save_state->data[0];
@@ -694,7 +694,7 @@ static int pci_save_pcix_state(struct pci_dev *dev)
save_state = pci_find_saved_cap(dev, PCI_CAP_ID_PCIX);
if (!save_state) {
- dev_err(&dev->dev, "buffer not found in %s\n", __FUNCTION__);
+ dev_err(&dev->dev, "buffer not found in %s\n", __func__);
return -ENOMEM;
}
--
1.6.1.94.g9388
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-16 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08 0:22 [PATCH] pci: __FUNCTION__ is gcc-specific, use __func__ Harvey Harrison
2009-01-16 18:17 ` Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox