Commit 73ce873a authored by Jiang Liu's avatar Jiang Liu Committed by Rafael J. Wysocki

ACPI / PCI: pci_slot: replace printk(KERN_xxx) with pr_xxx()

Trivial changes to replace printk(KERN_xxx) with pr_xxx().
Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 02df7349
...@@ -50,13 +50,12 @@ module_param(debug, bool, 0644); ...@@ -50,13 +50,12 @@ module_param(debug, bool, 0644);
ACPI_MODULE_NAME("pci_slot"); ACPI_MODULE_NAME("pci_slot");
#define MY_NAME "pci_slot" #define MY_NAME "pci_slot"
#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg) #define err(format, arg...) pr_err("%s: " format , MY_NAME , ## arg)
#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg) #define info(format, arg...) pr_info("%s: " format , MY_NAME , ## arg)
#define dbg(format, arg...) \ #define dbg(format, arg...) \
do { \ do { \
if (debug) \ if (debug) \
printk(KERN_DEBUG "%s: " format, \ pr_debug("%s: " format, MY_NAME , ## arg); \
MY_NAME , ## arg); \
} while (0) } while (0)
#define SLOT_NAME_SIZE 21 /* Inspired by #define in acpiphp.h */ #define SLOT_NAME_SIZE 21 /* Inspired by #define in acpiphp.h */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment