Преглед на файлове

Suspend: Use common prefix in messages

Make suspend messages start with one common prefix "PM: ".

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
Rafael J. Wysocki преди 17 години
родител
ревизия
465d2b477f
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      kernel/power/main.c

+ 3 - 3
kernel/power/main.c

@@ -235,7 +235,7 @@ static int suspend_enter(suspend_state_t state)
 	BUG_ON(!irqs_disabled());
 	BUG_ON(!irqs_disabled());
 
 
 	if ((error = device_power_down(PMSG_SUSPEND))) {
 	if ((error = device_power_down(PMSG_SUSPEND))) {
-		printk(KERN_ERR "Some devices failed to power down\n");
+		printk(KERN_ERR "PM: Some devices failed to power down\n");
 		goto Done;
 		goto Done;
 	}
 	}
 
 
@@ -269,7 +269,7 @@ int suspend_devices_and_enter(suspend_state_t state)
 	suspend_console();
 	suspend_console();
 	error = device_suspend(PMSG_SUSPEND);
 	error = device_suspend(PMSG_SUSPEND);
 	if (error) {
 	if (error) {
-		printk(KERN_ERR "Some devices failed to suspend\n");
+		printk(KERN_ERR "PM: Some devices failed to suspend\n");
 		goto Resume_console;
 		goto Resume_console;
 	}
 	}
 
 
@@ -352,7 +352,7 @@ static int enter_state(suspend_state_t state)
 	if (!mutex_trylock(&pm_mutex))
 	if (!mutex_trylock(&pm_mutex))
 		return -EBUSY;
 		return -EBUSY;
 
 
-	printk("Syncing filesystems ... ");
+	printk(KERN_INFO "PM: Syncing filesystems ... ");
 	sys_sync();
 	sys_sync();
 	printk("done.\n");
 	printk("done.\n");