Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp743816pxb; Wed, 3 Feb 2021 17:15:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp8h4gGK7v+8GEMEkq4F8Szo0kd8J9t3tb1TB3a8K1eYSnHVwIipEJ3srL10DLsWgYhX4T X-Received: by 2002:aa7:da8d:: with SMTP id q13mr5152569eds.263.1612401340898; Wed, 03 Feb 2021 17:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612401340; cv=none; d=google.com; s=arc-20160816; b=UC8j6gAdm5pXCx7+zGgECYoy9pApNGj20lCMBHYid+Et/svZf4e2ojvYJ9t4a8J4Rl lKNmCi7Yp37AbNu7ppqDisY27jAFYxPMXzj+gSMEi1jVYGw1nGWVwc0WawfhWJmBbCyu rGIs7m8m+smO/BcUqals3vXBpioC3UM79nVXx3F8cb/yf8KH08FvTPMpyv6R9u9Bgfqv pGFLHM1Ggn2ysdv4mlhtT9ydnWpxLhLWXtORU0YTMv62pP/jOmqUq4PlrhtlNXwf6XrQ ob/ey8C6aP6S5p5VX7VGrUPx4KoaCeasEFNKU7M0a1OTbWf203WsNKiqlgGZEAkpqeDx czQQ== 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=mrbpIigBBN9kyIXDoM/IySPMWW1vfQnP6AFnQkJAdCU=; b=bR3GTJQE9WIIK2sk1+Ul91f3L91OULJCD+zR0pRtbJsLI7p/nHDEcoJkchBXv3oIVT 8t0xLFxhl1/88G+XLTNB/oigjmGRGxDAbN4NKrwXJ25BJBkMwk2YlBSLNmVx40AYJ/YX SD4PjGJWkA90LHbyrBp4XGk4IUYaRpM+eYB/1VED1ZhB9EN9I9efnWlOFW6n7ZuL3QQT QHFECa2ZS+MjpQQWvs+DO0RmK266L0vIKFVA97Mo2POnPsDkLrSs/b+Hm/OUb+HOjHBP jtroECcUoQNUTRdsH6CxPB/WYAe46eqqrDU/HAZ1mAxUKQVemhTsRPTXennjBuOsv993 AzSQ== 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 g23si2402229ejf.749.2021.02.03.17.15.16; Wed, 03 Feb 2021 17:15:40 -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 S234304AbhBDBNK (ORCPT + 99 others); Wed, 3 Feb 2021 20:13:10 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12412 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbhBDBNK (ORCPT ); Wed, 3 Feb 2021 20:13:10 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DWL964FX6zjHbq; Thu, 4 Feb 2021 09:11:22 +0800 (CST) Received: from [10.174.178.147] (10.174.178.147) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 09:12:24 +0800 Subject: Re: [PATCH v3 1/5] ACPI: AC: 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> <15677254.uJehtQVoeh@kreacher> From: Hanjun Guo Message-ID: <062472ce-362b-b799-98a1-a3d122aeb92e@huawei.com> Date: Thu, 4 Feb 2021 09:12:24 +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: <15677254.uJehtQVoeh@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:43, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Replace the ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() instances > in ac.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_AC_COMPONENT definition > from the headers and update the documentation accordingly. > > While at it, replace the direct printk() invocation with pr_info(), > add a pr_fmt() definition to ac.c and drop the unneeded PREFIX > symbol definition from there. > > Signed-off-by: Rafael J. Wysocki > --- > > v2 -> v3: Also add a pr_fmt() definition to ac.c and replace direct > printk() with pr_info (no log level change). Reviewed-by: Hanjun Guo