Skip to content

Commit

Permalink
Suspend: Use common prefix in messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Feb 1, 2008
1 parent b6887a2 commit 465d2b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int suspend_enter(suspend_state_t state)
BUG_ON(!irqs_disabled());

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;
}

Expand Down Expand Up @@ -269,7 +269,7 @@ int suspend_devices_and_enter(suspend_state_t state)
suspend_console();
error = device_suspend(PMSG_SUSPEND);
if (error) {
printk(KERN_ERR "Some devices failed to suspend\n");
printk(KERN_ERR "PM: Some devices failed to suspend\n");
goto Resume_console;
}

Expand Down Expand Up @@ -352,7 +352,7 @@ static int enter_state(suspend_state_t state)
if (!mutex_trylock(&pm_mutex))
return -EBUSY;

printk("Syncing filesystems ... ");
printk(KERN_INFO "PM: Syncing filesystems ... ");
sys_sync();
printk("done.\n");

Expand Down

0 comments on commit 465d2b4

Please sign in to comment.