Skip to contentSkip to conversation

Fix checkpatch warning in drivers/acpi/nvs.c

PATCH In review Moritz Fischer 2 participants 3 messages Jan 14, 2015 – Jan 15, 2015 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix checkpatch warning in drivers/acpi/nvs.c

Hi,

attached a simple patch fixing a checkpatch warning about printk(KERN_INFO vs pr_info.

Moritz Fischer (1):
acpi: nvs: Fixed checkpatch.pl warning.

 drivers/acpi/nvs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 acpi: nvs: Fixed checkpatch.pl warning.

Patch replaces printk(KERN_INFO with pr_info.

---
 drivers/acpi/nvs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/nvs.c +2 -2
index 85287b8..e22235c 100644
@@ -171,7 +171,7 @@ int suspend_nvs_save(void)
 {
 	struct nvs_page *entry;
 
-	printk(KERN_INFO "PM: Saving platform NVS memory\n");
+	pr_info("PM: Saving platform NVS memory\n");
 
 	list_for_each_entry(entry, &nvs_list, node)
 		if (entry->data) {
@@ -203,7 +203,7 @@ void suspend_nvs_restore(void)
 {
 	struct nvs_page *entry;
 
-	printk(KERN_INFO "PM: Restoring platform NVS memory\n");
+	pr_info("PM: Restoring platform NVS memory\n");
 
 	list_for_each_entry(entry, &nvs_list, node)
 		if (entry->data)
Signature · 1 line
1.9.3
#2 lore raw
In reply to Moritz Fischer
Quoted 4 lines · Moritz Fischer

Hi,

attached a simple patch fixing a checkpatch warning about printk(KERN_INFO vs pr_info.

Which is not going to be applied unless it fixes a functional problem.

Thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.