Re: [patch] swsusp: fix error handling

From: Stefan Seyfried
Date: Mon Jul 04 2005 - 02:30:36 EST


Pavel Machek wrote:

> --- a/kernel/power/swsusp.c
> +++ b/kernel/power/swsusp.c

> @@ -998,14 +991,20 @@ int swsusp_suspend(void)
> * at resume time, and evil weirdness ensues.
> */
> if ((error = device_power_down(PMSG_FREEZE))) {
> - printk(KERN_ERR "Some devices failed to power down, aborting suspend\n");

i don't like this one. Silent failures are a major PITA.

> + printk("Error %d suspending\n", error);

therefor i like this one ;-) Maybe with a printk level?
--
Stefan Seyfried \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/