Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4040005pxb; Mon, 1 Feb 2021 10:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa8ScFHm7mdZqnumgy6XDyxuMPpeWyLU+sJMgzZWxXJHmESysHbauQ6YnmyGn5ES7hMfur X-Received: by 2002:a50:ee99:: with SMTP id f25mr8779336edr.17.1612205221261; Mon, 01 Feb 2021 10:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612205221; cv=none; d=google.com; s=arc-20160816; b=t751RrB4N+GEi86qkyRoYmNh8svie3Z6KwTTRU0K3VHe5HE7fzafKslSXW60JpD3Dd GvhnJ3NI8o3ezNKMWRzBtXkwxQ96EoBBWQmum6cdpZNlT6q2L85NABxtxKM6bGfBWe5H dy3RVhq/7smpJO9HqhU5/fLd4LcDv4NNYkCn17g422O5B8Tmo7z8/Jum3kPUybZwCDD+ w/ZwSan+/8smjD6U/1f5m9ELmFuhsaT6LLyW1cWeHEu71+MzWq2aMIuG5yFq76klpAbJ 1a1JKy1xnX6I5BLIaw8ewgYaU4kIW3iGN6dUAaPSIW/Y6VGCB9BkMgweFP1eGY891NKB F7hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=3F+IaK/LsrQrHTLR46KGKmkQYpd2IqLJ3cy++TfHCOw=; b=IaWTSl1Rc0P1YD5wLlWIvfyJ8RxgmfBikg0FJCYNMoG4Ew566BfVhMQ7WEVCIijmPO HpDYAmbTeCphWkrBEUomaZ1h+9BKpV2XNwdxf0GRywMQDIYyq4RwTtvVBuu03SjFE+0g sw2RtgOO/afWoR8ern/pLW9JL0li82cCkt4H8Od3gfHUDC3D222QKjgqOZG5DTeT5uAA WxQHDvbpbUt5kS6q7riHFlfAYE2X53Q5CDUBBoAGpEY11zD7JKrTSdeNhcU36uSYKVtZ VcCMSx5N3WF96VVUWRaVxMhggKA0bybL1x9V0WdQuL13u48i2n0tQM0JQ/0q5D9Csc4A fT6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si412449edy.105.2021.02.01.10.46.34; Mon, 01 Feb 2021 10:47:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbhBASpy (ORCPT + 99 others); Mon, 1 Feb 2021 13:45:54 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:40671 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbhBASpi (ORCPT ); Mon, 1 Feb 2021 13:45:38 -0500 Received: by mail-oi1-f178.google.com with SMTP id k142so5462444oib.7; Mon, 01 Feb 2021 10:45:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3F+IaK/LsrQrHTLR46KGKmkQYpd2IqLJ3cy++TfHCOw=; b=PTLBFKfUCgeX1DZXG8ht8oQv5uNZqQLyQG2y7AuKoxg4zBn/uuYZimwfbdGLQo0EG8 1irTCtqfwL0ElLiQNCWYtcCb1Ewt9P3tCWOINnlU3+m5fXZAXjGoVRx3T7k+H1hzs1GS 7KTZsdcGw2oTYDg+DkoOqxPFwbMsio4cB7lP265i4IFCPrIQ+OwxinNbJL753uzE/5ho 9ReduF/t/ah6PGjPWBaoxuD29KljszKWT8WFrsRXxpqakGQUBW34xqk8cXZbCStw5u8t mBd94hzh/omnJ3PcR4+2F9MuQM8CidMtqs8fAwWy1GvKmqX22DM1rq0/qCeGkcf2UgEn s0yA== X-Gm-Message-State: AOAM532x+geUoyy4q0eyRgGF25Kn3ZAVkHZpca1Lp0MBbusYEXx92J8M kHTKw9IHe3vRn7nywwU4Y+uQ/wehZK8YqPBAT1K1UXeD X-Received: by 2002:aca:fc84:: with SMTP id a126mr170770oii.71.1612205096134; Mon, 01 Feb 2021 10:44:56 -0800 (PST) MIME-Version: 1.0 References: <2367702.B5bJTmGzJm@kreacher> <1996712.1aSbzQgNOC@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 1 Feb 2021 19:44:43 +0100 Message-ID: Subject: Re: [PATCH v1 2/5] ACPI: battery: Clean up printing messages To: Joe Perches Cc: "Rafael J. Wysocki" , Linux ACPI , Linux PM , LKML , "Rafael J. Wysocki" , Zhang Rui , Hans de Goede , Erik Kaneda Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 1, 2021 at 7:37 PM Joe Perches wrote: > > On Mon, 2021-02-01 at 19:16 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Replace the ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() instances > > in battery.c with acpi_handle_debug() and acpi_handle_info() calls, > > respectively, drop the _COMPONENT and ACPI_MODULE_NAME() definitions > > that are not used any more, drop the no longer needed > > ACPI_BATTERY_COMPONENT definition from the headers and update the > > documentation accordingly. > > > > While at it, update the pr_fmt() definition and drop the unneeded > > PREFIX sybmbol definition from battery.c. > [] > > --- linux-pm.orig/drivers/acpi/battery.c > [] > > @@ -466,7 +460,8 @@ static int extract_package(struct acpi_b > > static int acpi_battery_get_status(struct acpi_battery *battery) > > { > > if (acpi_bus_get_status(battery->device)) { > > - ACPI_EXCEPTION((AE_INFO, AE_ERROR, "Evaluating _STA")); > > + acpi_handle_info(battery->device->handle, > > + "_STA evaluation failed\n"); > > I believe this changes the logging level from KERN_ERR to KERN_INFO. > > Perhaps this and others should instead use acpi_handle_err() Actually, these log level changes, because the messages in question are not very urgent. Something doesn't work and it's kind of good to know that, but there's not much that can be done about it.