All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [swsusp] print error message when swapping is disabled (fwd)
@ 2004-10-26  2:01 Zhu, Yi
  2004-10-26  2:38 ` Chris Wedgwood
  0 siblings, 1 reply; 4+ messages in thread
From: Zhu, Yi @ 2004-10-26  2:01 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Pavel Machek, Linux Kernel Mailing List


Hi Andrew,

This patch gives some clues to the user when swapping is not enabled during
swsusp. Please apply.


Signed-off-by: Zhu Yi <yi.zhu@intel.com>

--- 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 "
+				"swapon -a!\n");
 		return error;
+	}
 	return suspend_prepare_image();
 }
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-26  9:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26  2:01 [PATCH] [swsusp] print error message when swapping is disabled (fwd) Zhu, Yi
2004-10-26  2:38 ` Chris Wedgwood
2004-10-26  9:14   ` Pavel Machek
2004-10-26  9:16     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.