Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1400807pxb; Thu, 28 Jan 2021 15:59:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJydNlvEUKizG9o4/v1HG5L8rj62RyHvYkE+Lm1yqOlBgq7Ug0I7KrX5h/FH2N3arx4lNGCK X-Received: by 2002:a50:d60f:: with SMTP id x15mr2340725edi.224.1611878398907; Thu, 28 Jan 2021 15:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611878398; cv=none; d=google.com; s=arc-20160816; b=ddFLYBdFrS8+MYjo/P8tT6tEpLhNgVPcJhpZ4o5q4uAgFenfsQL/Yd/l8t3WkBcvAk He3cqjFdpPhZfAHydOYh8NnkrZU1qdXVMkOQOxhXBphum1V6BpCq0CdGfZppByVIRdsw JApIXC3cMstVJVz+rdWUyiPXCt9GtpYLd/kOd6xrNpUgfUX9tzC1q6EJaSPAhuZme3+B wS7tqkrA/8YpneO7r+uFaoYt34ywfSP14XPo/rAZWwoJhx91D36BM/CsFTwR/i7sb56V 7DywPpGpebLPmOUxi5WvibN1aoA4rg7wI9WTczrwq/7WurQdrWrfqiNlJ1vH/KtKvnDW M7/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=hSm8AUnVbxJKSIhJf7NTFrPik8wJMy8ryJuaNhmHBYM=; b=uvtGQfs6vcafLxJ2uP1mO9Ds/UkD8qlCORDr3SIi0Co3goHWtqydQmjfgqUay6d9Er 8L3Q9W4FsN00i0M2Jsj8FTbQiOp6acw3Yx/kLrH4qOR/5YCIOU5mHHBVX+4eT08pRo30 PAg73Mb4GhohDmOk6daz27/sNGlafZsFJDBhpw4B39eh+VOt9gkWxFrzPiyZub+9sszD XVwZDi3GBl5F+DAbe94EWbRRJyOLbtNTOpv+WG7xGG6DYM0dtLjvPOXi/Tc7BrSboUQg SwyStVK1qhjGW5POSEASOHx4KpcBnzD8reIgjOHTzped+0I3gKQ8Zhkth0mvtXWf3Yjx 2L5g== 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 f12si3708021ejd.230.2021.01.28.15.59.34; Thu, 28 Jan 2021 15:59:58 -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 S231186AbhA1X5V (ORCPT + 99 others); Thu, 28 Jan 2021 18:57:21 -0500 Received: from smtprelay0108.hostedemail.com ([216.40.44.108]:53636 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229530AbhA1X5V (ORCPT ); Thu, 28 Jan 2021 18:57:21 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id E910418014495; Thu, 28 Jan 2021 23:56:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:4321:4605:5007:6119:7652:7875:7903:10004:10400:10848:11026:11232:11658:11783:11914:12043:12296:12297:12555:12740:12895:12986:13069:13200:13229:13311:13357:13439:13894:14096:14097:14181:14659:14721:21080:21433:21451:21627:30041:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: glass70_2c03527275a3 X-Filterd-Recvd-Size: 2803 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Thu, 28 Jan 2021 23:56:38 +0000 (UTC) Message-ID: <955a079a3d15228ce9aeba8720dccae2dc7dfb7c.camel@perches.com> Subject: Re: [PATCH -next] acpi: fpdt: drop errant comma in pr_info() From: Joe Perches To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , "Rafael J . Wysocki" , Len Brown , linux-acpi@vger.kernel.org, Zhang Rui Date: Thu, 28 Jan 2021 15:56:37 -0800 In-Reply-To: <20210128232528.21117-1-rdunlap@infradead.org> References: <20210128232528.21117-1-rdunlap@infradead.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-01-28 at 15:25 -0800, Randy Dunlap wrote: > Drop a mistaken comma in the pr_info() args to prevent the > build warning. > > ../drivers/acpi/acpi_fpdt.c: In function 'acpi_init_fpdt': > ../include/linux/kern_levels.h:5:18: warning: too many arguments for format [-Wformat-extra-args] > ../drivers/acpi/acpi_fpdt.c:255:4: note: in expansion of macro 'pr_info' > ????pr_info(FW_BUG, "Invalid subtable type %d found.\n", [] > --- linux-next-20210128.orig/drivers/acpi/acpi_fpdt.c > +++ linux-next-20210128/drivers/acpi/acpi_fpdt.c > @@ -252,7 +252,7 @@ void acpi_init_fpdt(void) > ? subtable->type); > ? break; > ? default: > - pr_info(FW_BUG, "Invalid subtable type %d found.\n", > + pr_info(FW_BUG "Invalid subtable type %d found.\n", > ? subtable->type); Another question would be why is the pr_info when all the other FW_BUG uses in this file are pr_err One would think it's at least a defect of some time. I would think it should at least be pr_notice or pr_warn Documentation/admin-guide/kernel-parameters.txt- 1 (KERN_ALERT) action must be taken immediately Documentation/admin-guide/kernel-parameters.txt- 2 (KERN_CRIT) critical conditions Documentation/admin-guide/kernel-parameters.txt- 3 (KERN_ERR) error conditions Documentation/admin-guide/kernel-parameters.txt- 4 (KERN_WARNING) warning conditions Documentation/admin-guide/kernel-parameters.txt- 5 (KERN_NOTICE) normal but significant condition Documentation/admin-guide/kernel-parameters.txt: 6 (KERN_INFO) informational Documentation/admin-guide/kernel-parameters.txt- 7 (KERN_DEBUG) debug-level messages