Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3464810pxb; Mon, 4 Apr 2022 17:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu4nxGDDyV8A1GZUjx8EGhELtA/cLTETBMafsMFzyq8Fjwqn5jLYi6e+XZO+xF0dJ1hPlo X-Received: by 2002:a17:902:e545:b0:154:4d5b:2006 with SMTP id n5-20020a170902e54500b001544d5b2006mr928604plf.94.1649119827540; Mon, 04 Apr 2022 17:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649119827; cv=none; d=google.com; s=arc-20160816; b=NBnMNzjkcAo+ILoqOlV0WSOiE5TjOZ5IhEh+SIPqrlEbBqTcBekdNHT+2YCmkWrcio 8UVyln5juKDkrnK3q1BIqLtneH3dRaJkqcer0TRK+ArbQO0LJOvGMf16e+bmB2FMLu9m EjOL245t2KnEK+/6Zii89/miwR2cPZJZBHfnkd/Z0STsbazKIytxlQp5YhMD9pew8eZ7 FaXQTxes0w3GAisSeJmqUxkOQkNnOQdS2EFV7b1mpfd64SQaAxC+rMtTWLBS4khnbhyk 5XSitRA3KTKeSzzKEU8BBQnrNo3Hjgvc0uhgkekLRbPs5drfjaCI+dWvXMjnVrz+6JDC +Hdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dS/dDg554pANb02iJIPJvCbMcp/PxKMcJ/N69tFoVKQ=; b=PA9I1jJkKlrvoBwiz2t84G91vkz7wrj0IvMfDfHT495nlcqq6FPRjZ9tQRWA+NQick dMyaPXuir/F9LfglNW/sM2D0QFngwNFdEsVXkFg+qF5THmWPxhpDYyr9l7jz5yHx+w72 EZOt3uCv5DOQrwo8M0ijp/VzN2WizE4QX9u/t/37xlWNphCTe/oDYBEJU+oIdYiTWI2x gm4RaIVtnjDK1+EbWxisVsLHShrYDZEpUzOfogypfPs6Zq0YhKuebuiJbht0DampzZij WyzYEK74Dk65nNs74BpmHK5PduRLg0Bf6ghx1kjtpPt2fFBr14ZWvSyqpHf9zpAEUi5S NnlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l10-20020a170902f68a00b00153b2d1660esi12370473plg.534.2022.04.04.17.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40706E615D; Mon, 4 Apr 2022 17:00:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378416AbiDDPFf (ORCPT + 99 others); Mon, 4 Apr 2022 11:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378408AbiDDPFZ (ORCPT ); Mon, 4 Apr 2022 11:05:25 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A197512C; Mon, 4 Apr 2022 08:03:26 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.0.0) id cb6601044555c095; Mon, 4 Apr 2022 17:03:25 +0200 Received: from kreacher.localnet (unknown [213.134.181.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 6B3AC66BCD2; Mon, 4 Apr 2022 17:03:24 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM Subject: [PATCH v1 1/3] ACPI: PM: Convert debug message in acpi_device_get_power() Date: Mon, 04 Apr 2022 17:00:45 +0200 Message-ID: <4748430.31r3eYUQgx@kreacher> In-Reply-To: <5575732.DvuYhMxLoT@kreacher> References: <5575732.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.181.62 X-CLIENT-HOSTNAME: 213.134.181.62 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejvddgjeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvjeelgffhiedukedtleekkedvudfggefhgfegjefgueekjeelvefggfdvledutdenucfkphepvddufedrudefgedrudekuddriedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudekuddriedvpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Convert the debug message printed by acpi_device_get_power() to acpi_handle_debug(), because that function is also called when the ACPI device object name has not been set yet and the dev_dbg() message printed by it at that time is not useful. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/device_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/acpi/device_pm.c =================================================================== --- linux-pm.orig/drivers/acpi/device_pm.c +++ linux-pm/drivers/acpi/device_pm.c @@ -130,8 +130,8 @@ int acpi_device_get_power(struct acpi_de *state = result; out: - dev_dbg(&device->dev, "Device power state is %s\n", - acpi_power_state_string(*state)); + acpi_handle_debug(device->handle, "Power state: %s\n", + acpi_power_state_string(*state)); return 0; }