mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Zhu, Yi" <yi.zhu@intel.com>
To: "Pavel Machek" <pavel@ucw.cz>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH] [swsusp] print error message when swapping is disabled
Date: Mon, 25 Oct 2004 10:56:03 +0800	[thread overview]
Message-ID: <3ACA40606221794F80A5670F0AF15F8403BD57DA@pdsmsx403> (raw)


Hi,

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

Thanks,
-yi

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

             reply	other threads:[~2004-10-25  2:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25  2:56 Zhu, Yi [this message]
2004-10-25 10:27 ` Pavel Machek
2004-10-26 10:16 Li, Shaohua
2004-10-29  7:07 ` Zhu, Yi
2004-10-29  9:10   ` Pavel Machek
2004-10-29  9:54 Li, Shaohua
2004-10-29  9:59 ` Pavel Machek
2004-10-29 19:30 ` Nigel Cunningham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ACA40606221794F80A5670F0AF15F8403BD57DA@pdsmsx403 \
    --to=yi.zhu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®