From patchwork Tue Mar 27 20:58:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Limonciello, Mario" X-Patchwork-Id: 10311647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0DF8560386 for ; Tue, 27 Mar 2018 20:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A069297BA for ; Tue, 27 Mar 2018 20:59:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2B8E297E4; Tue, 27 Mar 2018 20:59:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8030297BA for ; Tue, 27 Mar 2018 20:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751930AbeC0U7O (ORCPT ); Tue, 27 Mar 2018 16:59:14 -0400 Received: from esa3.dell-outbound.iphmx.com ([68.232.153.94]:65135 "EHLO esa3.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbeC0U7B (ORCPT ); Tue, 27 Mar 2018 16:59:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1522184122; x=1553720122; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=f6Ul8mAIUUM1bRU6nXyCt8l4IB8XEkh5pu2A1O439qo=; b=erT2gWSmfSrBk9keqbkCH/25j/mp7OMy9pXf/IcyZhE+VYTwAiQkdnoI 9rImMyOMOA5AO6jn5N+Ueia7rCCub0uF9I3wjXXPQaDvvgp1I5O2vXLCb qtfzlZ7ztRABqPW5wi/H44sYoGInWcrqpNjgveO87ZVSXcs5aHvWP37ci I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EpAQDbr7pah8uZ6ERdGwEBAgMBAQoBA?= =?us-ascii?q?YUTKJhygwOUVAuBeoMKAoQDITcVAQIBAQEBAQECAQIQAQEBCgsJCCgvgjgigk0?= =?us-ascii?q?GeRA/ElcGE4UOrhCIS4IXhT6CGoFUQIhPG4VxA4cKhVCKaAiBX4xUAow6giaNV?= =?us-ascii?q?4ElMoF1cIMSgi+OP1GNNYJGAQE?= X-IPAS-Result: =?us-ascii?q?A2EpAQDbr7pah8uZ6ERdGwEBAgMBAQoBAYUTKJhygwOUVAu?= =?us-ascii?q?BeoMKAoQDITcVAQIBAQEBAQECAQIQAQEBCgsJCCgvgjgigk0GeRA/ElcGE4UOr?= =?us-ascii?q?hCIS4IXhT6CGoFUQIhPG4VxA4cKhVCKaAiBX4xUAow6giaNV4ElMoF1cIMSgi+?= =?us-ascii?q?OP1GNNYJGAQE?= Received: from esa5.dell-outbound2.iphmx.com ([68.232.153.203]) by esa3.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2018 15:55:21 -0500 Received: from ausc60ps301.us.dell.com ([143.166.148.206]) by esa5.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2018 02:48:23 +0600 X-LoopCount0: from 10.208.86.39 X-IronPort-AV: E=Sophos;i="5.48,368,1517896800"; d="scan'208";a="1124121474" X-DLP: DLP_GlobalPCIDSS From: Mario Limonciello To: "Rafael J . Wysocki" Cc: linux-acpi@vger.kernel.org, LKML , Mario Limonciello Subject: [PATCH v2 2/2] power/hibernate: Change message when writing to /sys/power/resume Date: Tue, 27 Mar 2018 15:58:53 -0500 Message-Id: <1522184333-27582-2-git-send-email-mario.limonciello@dell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522184333-27582-1-git-send-email-mario.limonciello@dell.com> References: <1522184333-27582-1-git-send-email-mario.limonciello@dell.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This file is used both for setting the wakeup device without kernel command line as well as for actually waking the system (when appropriate swap header is in place). To avoid confusion on incorrect logs in system log downgrade the message to debug and make it clearer. Signed-off-by: Mario Limonciello --- kernel/power/hibernate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 16e8645..15bc3cd 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -1053,7 +1053,7 @@ static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, lock_system_sleep(); swsusp_resume_device = res; unlock_system_sleep(); - pr_info("Starting manual resume from disk\n"); + pm_pr_dbg("Configured resume from disk to %u\n", swsusp_resume_device); noresume = 0; software_resume(); return n;