PCI/AER: Print completion message at KERN_INFO to match starting message
authorLance Ortiz <lance.ortiz@hp.com>
Fri, 24 Aug 2012 20:44:05 +0000 (14:44 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Aug 2012 20:44:05 +0000 (14:44 -0600)
The completion message in do_recovery() is currently KERN_DEBUG,
while the starting message in aer_print_port_info() is KERN_INFO.
This changes the completion message to KERN_INFO to match the
starting message.

[bhelgaas: changelog, use dev_info() instead of dev_printk(KERN_INFO)]
Signed-off-by: Lance Ortiz <lance.ortiz@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_core.c

index 0ca053538146b92d9a80d7e306d05b52a5b3bfc3..70758881480b095db5416753584fef11d3cf7f9a 100644 (file)
@@ -540,14 +540,12 @@ static void do_recovery(struct pci_dev *dev, int severity)
                                "resume",
                                report_resume);
 
-       dev_printk(KERN_DEBUG, &dev->dev,
-               "AER driver successfully recovered\n");
+       dev_info(&dev->dev, "AER: Device recovery successful\n");
        return;
 
 failed:
        /* TODO: Should kernel panic here? */
-       dev_printk(KERN_DEBUG, &dev->dev,
-               "AER driver didn't recover\n");
+       dev_info(&dev->dev, "AER: Device recovery failed\n");
 }
 
 /**
This page took 0.025114 seconds and 5 git commands to generate.