lkml.org 
[lkml]   [2004]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [swsusp] print error message when swapping is disabled
Hi!

> swsusp exits silently when swapping is disabled. This patch gives some
> clues to
> the user in this case. Please apply.

Did you mean "swapon -a"? Otherwise approved, please send it to akpm
directly.

Pavel

> --- linux-2.6.9-orig/kernel/power/swsusp.c 2004-10-24
> 16:16:41.000000000 +0800
> +++ linux-2.6.9/kernel/power/swsusp.c 2004-10-24 16:15:06.000000000
> +0800
> @@ -843,8 +843,11 @@ asmlinkage int swsusp_save(void)
> {
> int error = 0;
>
> - if ((error = swsusp_swap_check()))
> + if ((error = swsusp_swap_check())) {
> + printk(KERN_ERR "swsusp: FATAL: cannot find swap device,
> try "
> + "swap -a!\n");
> return error;
> + }
> return suspend_prepare_image();
> }
>

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

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.189 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site