Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262188AbUJZCVR (ORCPT ); Mon, 25 Oct 2004 22:21:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262116AbUJZCU7 (ORCPT ); Mon, 25 Oct 2004 22:20:59 -0400 Received: from [192.55.52.67] ([192.55.52.67]:32713 "EHLO fmsfmr001.fm.intel.com") by vger.kernel.org with ESMTP id S262157AbUJZCSv (ORCPT ); Mon, 25 Oct 2004 22:18:51 -0400 Date: Tue, 26 Oct 2004 10:01:40 +0800 (CST) From: "Zhu, Yi" X-X-Sender: chuyee@mazda.sh.intel.com Reply-To: "Zhu, Yi" To: Andrew Morton cc: Pavel Machek , Linux Kernel Mailing List Subject: [PATCH] [swsusp] print error message when swapping is disabled (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 30 Hi Andrew, This patch gives some clues to the user when swapping is not enabled during swsusp. Please apply. Signed-off-by: Zhu Yi --- 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(); } - 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/