Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp815746pxb; Wed, 3 Feb 2021 19:57:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3ygD4GsNIrvHge7Ex1aj+b0Kw9lbQdcZcgO0xlTcFvudFtrcdG8dDjU6hL/dsH5M38AqD X-Received: by 2002:a17:906:1685:: with SMTP id s5mr6108462ejd.23.1612411077323; Wed, 03 Feb 2021 19:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612411077; cv=none; d=google.com; s=arc-20160816; b=B4OnNJTSGnnax/TyKw/lAlwVHVNGF+Y+uhAajSrxbqNB/62otCImrvt3UIEmYepv/F vpRs1tT9NuFan+h4A1FnOKRUIWcleA1CRfB8FJcN7U2TMSNxmN1NV+InNf/h2VfRPvmw h6gByIY7Ao3k1+pxeyN+vkMxiC/Fe2HjUjdBtTHXNVuTaRe6I+wcVfI3ntF4yMtf7szk fdYenUCCCxcuowjCB1wjewB5GUbrmuuW5CKsCJnXde8QXSLrEuMeJQ3Hr7/HtdNwW1yB 5KSAbKVjv2vh3dGG0KkcXqEBQh+RxBIN3agxNgJ8mM4VtGx/7TKCmSBWaBvi5dVS5Crj +5Cw== 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=+6hZANRWDFHogat8/+AgbwCUoVVHxk1X9wpQZja1h7c=; b=AwRW5fb4TQCq8FTvyaN5E35bS7k6Clb4RIftnfz9SfTBDepgeioUWvA5w8N+QpLVEi J8BMBjWGBKLSPstCJDqGzdUUSdNtyC8jqaUyQRl+dKxmf3D4PcAY322EHjycr4D6NIq3 hyL2QW/V30cQ587avhpMN5Y8SvRGqnsiNsb0Kwj2850w+qKfQe5wydqvHRKJrTuUINzD 2bP1aozg+y713qRYYTGYp6olyTvpePPZSzPjprsd2AY2FCWwBc8+9StlDy4fqewg529U ELdiajtRWwhOjjwhiNggzhgm4KM8lkIUgvi5F25kmxpILflXQXckdIjkzlAuVCPtEVTM j+Pw== 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 d19si1699837edt.189.2021.02.03.19.57.21; Wed, 03 Feb 2021 19:57:57 -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 S233887AbhBDBnl (ORCPT + 99 others); Wed, 3 Feb 2021 20:43:41 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12413 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbhBDBnk (ORCPT ); Wed, 3 Feb 2021 20:43:40 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DWLrL4yrSzjHfM; Thu, 4 Feb 2021 09:41:54 +0800 (CST) Received: from [10.174.178.147] (10.174.178.147) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 09:42:57 +0800 Subject: Re: [PATCH v3 4/5] ACPI: video: 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> <1924490.ZvBDFke9FE@kreacher> From: Hanjun Guo Message-ID: <53bc0b9e-e036-1dda-139c-8347e90f0921@huawei.com> Date: Thu, 4 Feb 2021 09:42:43 +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: <1924490.ZvBDFke9FE@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:48, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Replace the ACPI_DEBUG_PRINT() instances in acpi_video.c with > acpi_handle_debug() calls and the ACPI_EXCEPTION()/ACPI_ERROR()/ > ACPI_WARNING() instances in there with acpi_handle_info() calls, > which among other things causes the excessive log levels of those > messages to be increased. > > Drop the _COMPONENT and ACPI_MODULE_NAME() definitions that are not > used any more from acpi_video.c, drop the no longer needed > ACPI_VIDEO_COMPONENT definition from the headers and update the > documentation accordingly. > > While at it, add a pr_fmt() definition to acpi_video.c, replace the > direct printk() invocations in there with acpi_handle_info() or > pr_info() (and reduce the excessive log level where applicable) and > drop the PREFIX sybmbol definition which is not necessary any more > from acpi_video.c. > > Also make unrelated janitorial changes to fix up white space and > use ACPI_FAILURE() instead of negating ACPI_SUCCESS(). > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Hanjun Guo Thanks Hanjun