Commit 4bf182ad authored by Yi Zhu's avatar Yi Zhu Committed by Linus Torvalds

[PATCH] swsusp: print error message when swapping is disabled

This patch gives some clues to the user when swapping is not enabled during
swsusp.  Please apply.
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e994ddf6
...@@ -847,8 +847,11 @@ asmlinkage int swsusp_save(void) ...@@ -847,8 +847,11 @@ asmlinkage int swsusp_save(void)
{ {
int error = 0; int error = 0;
if ((error = swsusp_swap_check())) if ((error = swsusp_swap_check())) {
printk(KERN_ERR "swsusp: FATAL: cannot find swap device, try "
"swapon -a!\n");
return error; return error;
}
return suspend_prepare_image(); return suspend_prepare_image();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment