Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp651272pxb; Tue, 2 Feb 2021 14:23:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTpdjPS4fOMKOIUuiDUcfak5FC4VC/tbhJ6xp6/SnhsuFCYw78qwQRsFvB6LlfOP09x4dp X-Received: by 2002:aa7:cdc7:: with SMTP id h7mr217807edw.353.1612304616300; Tue, 02 Feb 2021 14:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612304616; cv=none; d=google.com; s=arc-20160816; b=zsrP0ysupvNJujj07coIMEOG3Qkr0FvFOWUdwz2Q+016dl4ueNPrks+uVjAh+JFu0N pBhfBDbOaUcWHnSBrP+oq5DzN8rD0WHlEqfGLM7nRie9NEOfLl57eITZQHQy8Lt30YV7 eb+wR1fgVoz/kyfQ7R7Z6eFrOlXH34s9Y3colBB96ZJF3WVcxxz/QKer8I3qTHe6mjdN uN97dEXyiX1dOUP2NjwGPvp+4+gbC/+anx1KdF3HChR1ZdlIfvTGex8W+yUtWO9S9GjX 9tsURTUkJlKwy6eB7T4VPZC6/UAY3iNUNqW12xCgm+S51Aps+gxIgi8vtDthxADk0LCi FJkA== 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=rYfGir+nbz/4ZTAALmTVXRO3TLfJBR8+o48CtPhExRw=; b=FgySb/C4FQJ9NAvB1pA3lNFYNCIv3N2v0NkOxw1ApmcNcY0AUYN95mNnOV9eLlFNOY 2YpVXlLV9U4s00D5FEaALk6UIpYkwfQKOvgyYxo7mdMEZtHYS+AE+DIosP7peX3LtZA4 5RHXQrU8M1deHep7O2XAsjaiUPyUhaGANd6d7KZi8E/krw2yTgKriFpnDuZ19gLGT+uj 35XRHGKUYANaga1BYpQJGKXBW1IGS/mIZbwUrJpaHArprti7E7f8ENso5bNgzMPokzup yVVoj3Y7HGH+2WFVJPhy+rk30l7EI0kcC4ZY/o/nhxMFK24J2w5ff32OdYOsfjRo8Kjr /0iw== 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 c16si53995edu.304.2021.02.02.14.23.05; Tue, 02 Feb 2021 14:23:36 -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 S232304AbhBBOTo (ORCPT + 99 others); Tue, 2 Feb 2021 09:19:44 -0500 Received: from mail-oi1-f180.google.com ([209.85.167.180]:33362 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233892AbhBBOKv (ORCPT ); Tue, 2 Feb 2021 09:10:51 -0500 Received: by mail-oi1-f180.google.com with SMTP id j25so22884949oii.0; Tue, 02 Feb 2021 06:10:34 -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=rYfGir+nbz/4ZTAALmTVXRO3TLfJBR8+o48CtPhExRw=; b=Cgy1Dq+CHDk3gfHmsmxzSsva2eRg0CPB9jLbbMqPNn5lNfHqaXDqKyWInJuYk1VlMM jf/2SW4VwXDOZxeBIK+OoEdZ9VpwvYGyqoPNA4uI+eWk2AWMdXNAqN1X2AIW0h7PhcMb lbkVJ4NIoPk+juHs9YRUVszCENUjU2b/3u/iOz0OcGd+fdLAXz8gGUBIJ9GrCyQbokX+ josWlh0I9QaW4E356QtWHWT4oAJDp3XBlV1E+iQ85qPVSh1MiryZy19cM1aiUMbGKE8i PBp1m2ADSFAbIS0JHorx8ZSM6dU4GKsEOv8BXYGsl3vLeLd9ADZqnVMU72O4V4DgHgzf U+rA== X-Gm-Message-State: AOAM533aUt8JXn+ORg6O7lbrlXgO/OQrWPvBa/vNdVlNmf8TLzRCUlYo HPkYHN6q2fCaPhed6NieC8mrJFvU5kowOdPamkA= X-Received: by 2002:aca:308a:: with SMTP id w132mr2641367oiw.69.1612275009533; Tue, 02 Feb 2021 06:10:09 -0800 (PST) MIME-Version: 1.0 References: <2367702.B5bJTmGzJm@kreacher> <1996712.1aSbzQgNOC@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 2 Feb 2021 15:09:57 +0100 Message-ID: Subject: Re: [PATCH v1 2/5] ACPI: battery: Clean up printing messages To: Joe Perches Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux ACPI , Linux PM , LKML , 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 Tue, Feb 2, 2021 at 2:38 PM Joe Perches wrote: > > On Mon, 2021-02-01 at 19:44 +0100, Rafael J. Wysocki wrote: > > 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. > > That more argues for removal of KERN_ filtering. > > I fail to see how difficult it is to change these to the existing > KERN_ using a simple acpi_handle_info() -> acpi_handle_err() > substitution where appropriate. I'm not really sure what you mean. It is not a technical problem, but in my view the KERN_ERR log level is excessive for these messages. > At a minimum, the commit message should note the KERN_ changes. OK, let me update the changelogs, then.