Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp746747pxb; Wed, 3 Feb 2021 17:21:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPxGB7HodGupQjjQr3Ob04kbeelJ9rsUs/ZHtbb0HxevOLEG9h0c6xCE0mbS8nnX7KlNDU X-Received: by 2002:a17:906:f24a:: with SMTP id gy10mr5719351ejb.531.1612401703955; Wed, 03 Feb 2021 17:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612401703; cv=none; d=google.com; s=arc-20160816; b=HmACT9BZZICp1QsU2YRuq/oxyIcvIO/psAvgnsKc0u2yXpXqNT4emJS3Xu0EdAAFfN l6TSlqVNvzfuNup9hso7DCsMSt1JitWRJjPZXk/E23MUWAy1Z3tOfF0+QirVdwK//yIq wVtEKix0c79d5YUuvDx0OUKqwcqMj1hygekMJzZAsowxt8Zai4dF8sLUzS7hY5qQI4UY GNwIFT3JMjOSFLedkIok2acppFCdG45UmuOKqwzIy4lTMKa0QRSIhuBxV8/JF6IkP7Q3 J+I5YkJ3tVShdWXdFlpvgIkk8UDGotjSYkc6wWVXhBddpAyEfQ1rbMz14ZMArHWgjQhk BXmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/mPa51BFwrM+sPX6dwZ6rsz57Bxy4oO55MbGUJ80n64=; b=R/E/HiRmCzJB8wL4+hX0x8+Y4UmHNV11XLkPeOkNWnNn7zv2fAoL0OoSFfg5yTCInh rmvGxTG7cZZl4fCx+Cm2LgYgfV/Hu/GkU4FrbPAPy62tDN2ojJk6gdTrq9pfk+8a25kG nHUf62jo1pQoagpk88ts+EWeGagcxUQ1vD99YQEeFaIZZJCyhyBEY5LiJk6w/tvuRa6u q2yXu0mecEmkx7cFTlDsG3uJa+GTalNwthrEB5gvaIY4ORFljw8W7cipRwDN8xJF8P0J HzCHjSz3YzE3ayFlOpc0T7D3ZbmY5f4L83WhKol0m8AuPvA0TIv0rWvA0KOAMsZNzCc0 nYXA== 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 x2si2389399ejb.174.2021.02.03.17.21.19; Wed, 03 Feb 2021 17:21:43 -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 S234372AbhBDBTQ (ORCPT + 99 others); Wed, 3 Feb 2021 20:19:16 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11676 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234270AbhBDBTP (ORCPT ); Wed, 3 Feb 2021 20:19:15 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DWLHS38MGzlDhN; Thu, 4 Feb 2021 09:16:52 +0800 (CST) Received: from [10.174.178.147] (10.174.178.147) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 09:18:29 +0800 Subject: Re: [PATCH v3 2/5] ACPI: battery: Clean up printing messages To: "Rafael J. Wysocki" , Linux ACPI CC: Linux PM , LKML , "Rafael J. Wysocki" , Zhang Rui , Hans de Goede , Erik Kaneda , "Joe Perches" References: <2367702.B5bJTmGzJm@kreacher> <1991501.dpTHplkurC@kreacher> <1961054.9MKZ8ejxOh@kreacher> <1731128.lCOlkKr4QW@kreacher> From: Hanjun Guo Message-ID: <056c6a20-4957-e112-6a8f-62fe39247e56@huawei.com> Date: Thu, 4 Feb 2021 09:18:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1731128.lCOlkKr4QW@kreacher> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.147] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/2/4 2:44, 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, which among other things causes the excessive log > level of the messages previously printed via ACPI_EXCEPTION() to > be increased. > > 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. Also adapt the existing > pr_info() calls to the new pr_fmt() definition. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Hanjun Guo Thanks Hanjun