Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp430120pxb; Thu, 25 Feb 2021 06:23:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX67x+rFYbGNLn2bODdo4qdbvmqfLDnOEFPj4IjpSrQ62laOOtWrZvrwbBpJlJ+P86/9hj X-Received: by 2002:a17:906:8474:: with SMTP id hx20mr2887471ejc.129.1614263009502; Thu, 25 Feb 2021 06:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614263009; cv=none; d=google.com; s=arc-20160816; b=MgKcOLXLWL2/uEf8/a+CXCI8qLEwvmKRAXHIG0NuCk/x8NtGznaWvXYJTU4xnIlkVI 6136/feIXzUkuQl8niiFGAXnnpwD4f5T6BNjmcjd0l8cX7/2mSakAcwg72ZmH3xBD4Wc 0zLBH6ZSzQ+Z+thEdxGL08p35yLaz2pfm9A1xVFwhM6blZEnuzsqg4xAcBgCSvK6IY9u T4ayzEbd8b+HzyEsQYcQyCqMRomkjm/rdYEdpH55pnbzo6Eqx6+zSSNz7JCkBT8bvkQ6 2hGxNvoHK3Xtgn3ujwn/m+W0O4LzTG2ZIZPQjyQ3z8j1kQ7ZSzYdY1OuiglVaEI0YaGI AZsg== 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=TPKR1F8No0keMLWM/5Nhp4Bhde71mtQehbLO3Hs+RQ0=; b=xJm5d2SYc6xma8RyPNl2FhhkwZPfoaf4v8KRkDESExPInJckZoqho1gRLXWBKmLRqT LksfqVpqpZjnZHkU+8OVEJp+0rdzpNwFUebbRitTB7D2Ciiwknq/6JfAE1wstMaSgBem 0N1Y7SOYIZSgvEL3YaH2kWInaQ9h9N2JjjtG/pZ4OZlTxc+dM/H3vFVY5FUeTWNIT1A/ xjUbHP7e6F33paLQokK6Mn4zN0pf94sdYj0rkPd1VqGQwGSe9HzFrOObyIPUTCtCsfCn c+CQXHasttYSqxfBarexi7gETeoJ8YPrOxD3XIKz5+aASvjAbhIHgyZCzauAKtAQGISb r7hw== 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 hq3si3499584ejc.692.2021.02.25.06.23.04; Thu, 25 Feb 2021 06:23:29 -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 S230498AbhBYOTt (ORCPT + 99 others); Thu, 25 Feb 2021 09:19:49 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12579 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhBYOTr (ORCPT ); Thu, 25 Feb 2021 09:19:47 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DmZbc2dQxzMdvS; Thu, 25 Feb 2021 22:16:44 +0800 (CST) Received: from [10.174.178.147] (10.174.178.147) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Feb 2021 22:18:41 +0800 Subject: Re: [PATCH v1] ACPI: processor: idle: Drop extra prefix from pr_notice() To: "Rafael J. Wysocki" , Linux ACPI CC: LKML , Linux PM References: <1888725.8kdNXL6VX8@kreacher> From: Hanjun Guo Message-ID: Date: Thu, 25 Feb 2021 22:18:42 +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: <1888725.8kdNXL6VX8@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/25 2:37, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Drop "ACPI: " from the pr_noitice() instance in > acpi_processor_cstate_first_run_checks(), because pr_fmt() causes > that prefix to be added to the message already. > > Reported-by: Hanjun Guo > Signed-off-by: Rafael J. Wysocki > --- > drivers/acpi/processor_idle.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > Index: linux-pm/drivers/acpi/processor_idle.c > =================================================================== > --- linux-pm.orig/drivers/acpi/processor_idle.c > +++ linux-pm/drivers/acpi/processor_idle.c > @@ -780,8 +780,8 @@ static inline void acpi_processor_cstate > dmi_check_system(processor_power_dmi_table); > max_cstate = acpi_processor_cstate_check(max_cstate); > if (max_cstate < ACPI_C_STATES_MAX) > - pr_notice("ACPI: processor limited to max C-state %d\n", > - max_cstate); > + pr_notice("processor limited to max C-state %d\n", max_cstate); > + > first_run++; > > if (nocst) Reviewed-by: Hanjun Guo Thanks Hanjun