Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp629297pxb; Tue, 2 Feb 2021 13:42:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRg/HzOzOC40QcvPqvoW/TQP877VZ5fiqBkh88mBkBE6NFa1wHgEVtQnTczTS1DgKDpuFV X-Received: by 2002:aa7:d817:: with SMTP id v23mr115215edq.192.1612302178536; Tue, 02 Feb 2021 13:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302178; cv=none; d=google.com; s=arc-20160816; b=LJ04P6GBGlS8u7vlM26T9rjRuJ30p3hLlNc0CP//gukUSIM6CDnNEDkFsTlaF8sulm 8i/yXDHX2+l6N0RQ4Y7jv9uypwGP+nEdwGlIrhPfNa4/jkA6jj63JhVxtuyL040x8ABX h0QG+IMTmkNEdSkPyrD5xPAyDJ0N+oEY/XxRXQI6kbF5Ca3BuHb7ROcpcYvtA8XIR8CF RyHxn1KphQ6IaoWuwIXCS+bpsS2dScFHHzwdD5MepvHys0W3Xdm9GE3jx330xhvEjY3Y ln8+HQ7nqDBlia/qQbyTG/phYSK4Tp86UAEFYzGObp7tYps0Wj4dDUe9UgClPgqBjv/6 BcBw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=MayqBqcTA86ISHM3cQ3ENzts40NWTafBl3C0A77KDjk=; b=yifg7xzbwfc/oB4dvv9vVfY7Mr/HFmfG1jValJDFrZ4T4wJx9jUm0XJE4pmt4NCdRg z1oCXSBFBGhp42TeiMI505OTWSGS4tnFEmC2vImuAgN+u3sj7UPHHv8QiNjkQIoUtFbM NRYrrhzXeyxH9Gy3ljR26sWJ5CRSYl8kMZNwewevyFMvnTlks2xyjkpgUZ4lhAOooxGo PbuIwdlYCzufLPjHGxdlOF0r0/z9TPy3qB1WHl+l0D1WjF8XgQFuHyvhWgYkBYFc+0RF VlHBLMuAaPBwPCbcnta2mZi8N1DAqfe7emMKv/uCia30ntxNnW009jQPZ+McvpzDfuAT n9LA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si12283616edd.350.2021.02.02.13.42.22; Tue, 02 Feb 2021 13:42:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbhBBNlR (ORCPT + 99 others); Tue, 2 Feb 2021 08:41:17 -0500 Received: from smtprelay0164.hostedemail.com ([216.40.44.164]:33094 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232480AbhBBNjM (ORCPT ); Tue, 2 Feb 2021 08:39:12 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 6EA46180240BD; Tue, 2 Feb 2021 13:38:19 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2198:2199:2393:2553:2559:2562:2691:2828:2895:3138:3139:3140:3141:3142:3353:3622:3743:3865:3866:3867:3868:3870:3871:3872:3874:4321:4605:5007:7576:7652:7875:9389:10004:10400:10848:11026:11232:11233:11473:11658:11783:11914:12043:12296:12297:12438:12740:12895:13069:13095:13311:13357:13439:13894:14181:14659:14721:21080:21212:21433:21451:21611:21627:21660:21740:30041:30054:30064:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: tub70_03089f0275cb X-Filterd-Recvd-Size: 3098 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Tue, 2 Feb 2021 13:38:17 +0000 (UTC) Message-ID: Subject: Re: [PATCH v1 2/5] ACPI: battery: Clean up printing messages From: Joe Perches To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , Linux PM , LKML , Zhang Rui , Hans de Goede , Erik Kaneda Date: Tue, 02 Feb 2021 05:38:16 -0800 In-Reply-To: References: <2367702.B5bJTmGzJm@kreacher> <1996712.1aSbzQgNOC@kreacher> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. At a minimum, the commit message should note the KERN_ changes.