Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1379861pxb; Thu, 4 Mar 2021 09:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1T3u70x2kahy6tVCY9576vqqX9e+moVr/U3AYTXB48W+juk2rusdbvha1djUc9y9CX/z+ X-Received: by 2002:a17:906:da0e:: with SMTP id fi14mr5748852ejb.188.1614880151638; Thu, 04 Mar 2021 09:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614880151; cv=none; d=google.com; s=arc-20160816; b=xgNEHKBn18jqA3ZxZKIgtHoumNvYARlmURLAcc/+le+bR/uCJKK6i0rjN7Sdp4m2sI Ih7UzXvOYgPYDHdOaiVEqmN7azApUvtxF9yZsHX2kWDPkfvaKXtRf6bCpRD5n8Asoof/ pmvpXQYo1doQp0l+rNcIEWCQyDsE6EvBcnWnx7po0N1prqJpuM6kC7txV34UaAwgpOCb zuPW7sf8B2AzU77XBGIhlofPEk+D2AlMFTu07AOOBFySPP/2xKbQ2XBIsXZn2lR/66rO s2y/pn8kuHhHw3IMZ0uaM0MzcCPG5+7+YkbJoFuu7kOGLEnp/RyFF87atUylLP+3FSzQ 9Y+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=pzWNIBuVfLxYj2PJbGktT8ZZ7J3vD+7LTuk7a6dg7KE=; b=k+5fWF52NsJvnVtSetVbUpBs5vWf5MdGlYu75q3XjVL4b+jyoCeVZjEtkh4mALYpNX KRlJ9MgGDXEAWIFdOLpSooiDX6M9OayJckhvLC+WXI9wHuHGxuGB0jh20lNQQ91Eu2bG XOcO/Ab1owhHklBLe4VbKY6tDxNGMj1KH4CQ7pgEtlRBfGNRuHQADSpGoErPyD0axNfJ zu+ZTcW1GJ/oIPYPOaLfqp6ELeHC5A9BuFiNmEsiwJtsLXrSr9kgquAsr87oTldclVCp XUk5fLB2ENnWgIvPPtW4AmoCie6K/deGY5SMMNb/1ioj7ABOv+SyKGDOk5JiFYcS2Uay X3Og== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf26si10299794ejb.702.2021.03.04.09.48.48; Thu, 04 Mar 2021 09:49:11 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241526AbhCDOQw (ORCPT + 99 others); Thu, 4 Mar 2021 09:16:52 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:37842 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241720AbhCDOQr (ORCPT ); Thu, 4 Mar 2021 09:16:47 -0500 Received: by mail-ot1-f45.google.com with SMTP id g8so23704890otk.4; Thu, 04 Mar 2021 06:16:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pzWNIBuVfLxYj2PJbGktT8ZZ7J3vD+7LTuk7a6dg7KE=; b=GdjWuaDaw9HsKp7/QeaSFXOaD7Viy9TEHCD39H+K3sskPOkyulkk19H39WPov19Xh3 yf9/LLJohUGCv7ceYyqbyhMZAA2sVl6S/NkXahKqQYiGsPUOuPYDM1fDYnLvTLbmNp8d Dj5nwGbLQDXGJo5gcAs0j8UTo9fZEhm1K+AsREo0UFjjzskgpKfEPd0TARAKiVV5k+wu LcI6tKoV7mN3PXZe9m4bY1XM8KlK6g/0AbThk7bhSg9nstibFfGkzegsEKJRXJF3ZCh6 AkzTRoZzjJt8n95Eb+HkEeq4fo8Cmc3CpJlayVWfTt7PgzoQzL641T5LLFoF2ipziGyw jGiA== X-Gm-Message-State: AOAM531rJ09YIhyVvUaONuClg8/DHh6D5GEvhByw5xO8DRCjCEouhsfr QDfAsQDc1G7kUR3kXRegvHQS0w7RL92ZWY4lk6w= X-Received: by 2002:a05:6830:1057:: with SMTP id b23mr3760190otp.206.1614867367021; Thu, 04 Mar 2021 06:16:07 -0800 (PST) MIME-Version: 1.0 References: <2074665.VPHYfYaQb6@kreacher> <77955b4c-eca1-afe9-5fbc-ceddc39cb397@redhat.com> In-Reply-To: <77955b4c-eca1-afe9-5fbc-ceddc39cb397@redhat.com> From: "Rafael J. Wysocki" Date: Thu, 4 Mar 2021 15:15:55 +0100 Message-ID: Subject: Re: [PATCH v1] platform: x86: ACPI: Get rid of ACPICA message printing To: Hans de Goede Cc: "Rafael J. Wysocki" , Platform Driver , Linux ACPI , LKML , Hanjun Guo , Chen Yu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 3:14 PM Hans de Goede wrote: > > Hi, > > On 2/24/21 7:41 PM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > A few x86 platform drivers use ACPI_DEBUG_PRINT() or ACPI_EXCEPTION() > > for printing messages, but that is questionable, because those macros > > belong to ACPICA and they should not be used elsewhere. In addition, > > ACPI_DEBUG_PRINT() requires special enabling to allow it to actually > > print the message, which is a nuisance, and the _COMPONENT symbol > > generally needed for that is not defined in any of the files in > > question. > > > > For this reason, replace the ACPI_DEBUG_PRINT() in lg-laptop.c with > > pr_debug() and the one in xo15-ebook.c with acpi_handle_debug() > > (with the additional benefit that the source object can be identified > > more easily after this change), and replace the ACPI_EXCEPTION() in > > acer-wmi.c with pr_warn(). > > > > Also drop the ACPI_MODULE_NAME() definitions that are only used by > > the ACPICA message printing macros from those files and from wmi.c > > and surfacepro3_button.c (while at it). > > > > Signed-off-by: Rafael J. Wysocki > > Thank you. > > I've merged this into my review-hans branch now, minus the > acer-wmi.c changes because a similar patch was already merged for those. Thanks!