Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4035266pxb; Mon, 1 Feb 2021 10:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrS953DCMT4O+WAlUHBFoSN8zsDJuVM5VVdxDEJHaHC/KXnAPs8dEaSj7yosrtb/b4wzmq X-Received: by 2002:aa7:c3cf:: with SMTP id l15mr6212061edr.98.1612204759696; Mon, 01 Feb 2021 10:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612204759; cv=none; d=google.com; s=arc-20160816; b=SVL5lQJxQX247sYDQz4eXLsab0DrlOrr64GHNmc01MetzQqQbwYtCzQuE+gW2SV/uP UY4HOvuHsalAbfG4Ky4xaGtMKIoCW96lpYicxmq1P/N8HW4bUPBS/gYgXYrPDaGR7WTb iCoVEl82LUZVcso+w2PlsN2yQwACz8H7Ea0pUuscbgTDNfSyDzCYPz+E3XrBYjXojMDv gKMdMh352iAHLDlaHOl8UGN6XZ9Z4A1YlsVPHbTcvVApV+JzaeYQ6bPEaabBo6dvE+/3 iTuJ9M09cCpayvtxpdgWyUyvN242L3Xw0Mn1wgztI6slEMcgj6BaqZ2BvqALQ2W4pqD1 3Ytg== 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=BXXorkhb0ka8bQtWqE3H3K0STa9cHoBbcGNqMOoELqE=; b=WCn2Qli+IbwtxpMMzVtpCjJM+AvkBvuT1Urtqvk3W/mY2B5Xzh5RVVn8E81UeOAWAB K/I5bUq5Fw35fpo3k6Qvd2yhh9GXxcqmUp9XnH6g1kSSgl52F1nfWfS9GdD95eCsQfY5 FLwgR80WXBTYTul/XjG7p8yWbCpW7F2Gw8G5LyjD0VpCRAZfnindQyHsuVZBpaF3Sjri QRxIl5jc0AUegYdKjQ/+I+BUujpYJGdqLyMFsjxgHLfpvGcSu6rxE3Uvz49d376OB9qn AhPiQVmDcYodzz1Md8qXJ6Jt9FYKDqRpE8XsxHrxI/L5vi66Nk4dXoPl2sPT8MXSgkAp OL1w== 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 jx6si1170266ejc.37.2021.02.01.10.38.50; Mon, 01 Feb 2021 10:39:19 -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 S232988AbhBASgx (ORCPT + 99 others); Mon, 1 Feb 2021 13:36:53 -0500 Received: from smtprelay0174.hostedemail.com ([216.40.44.174]:43840 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232955AbhBASg2 (ORCPT ); Mon, 1 Feb 2021 13:36:28 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id C9901182CF66A; Mon, 1 Feb 2021 18:35:37 +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:2198:2199:2393:2559:2562:2691:2828:2895:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3872:3874:4321:5007:7576:7652:7875:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12297:12438:12740:12895:13069:13311:13357:13439:13894:14181:14659:14721:21080:21212:21451:21611:21627:21660:30054:30064:30070: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:2,LUA_SUMMARY:none X-HE-Tag: sound29_52137f3275c4 X-Filterd-Recvd-Size: 2116 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Mon, 1 Feb 2021 18:35:35 +0000 (UTC) Message-ID: Subject: Re: [PATCH v1 2/5] ACPI: battery: Clean up printing messages From: Joe Perches To: "Rafael J. Wysocki" , Linux ACPI Cc: Linux PM , LKML , "Rafael J. Wysocki" , Zhang Rui , Hans de Goede , Erik Kaneda Date: Mon, 01 Feb 2021 10:35:33 -0800 In-Reply-To: <1996712.1aSbzQgNOC@kreacher> 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: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()