From: Joe Perches Subject: Re: [PATCH v2 6/6] lib/vsprintf: Add %pfw conversion specifier for printing fwnode names Date: Tue, 26 Mar 2019 13:18:09 -0700 Message-ID: References: <20190326124106.27694-1-sakari.ailus@linux.intel.com> <20190326124106.27694-7-sakari.ailus@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190326124106.27694-7-sakari.ailus@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Sakari Ailus , Petr Mladek , linux-kernel@vger.kernel.org, rafael@kernel.org Cc: Andy Shevchenko , linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring List-Id: linux-acpi@vger.kernel.org On Tue, 2019-03-26 at 14:41 +0200, Sakari Ailus wrote: > Add support for %pfw conversion specifier (with "f" and "P" modifiers) to > support printing full path of the node, including its name ("f") and only > the node's name ("P") in the printk family of functions. The two flags > have equivalent functionality to existing %pOF with the same two modifiers > ("f" and "P") on OF based systems. The ability to do the same on ACPI > based systems is added by this patch. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -5977,7 +5977,8 @@ sub process { > while ($fmt =~ /(\%[\*\d\.]*p(\w))/g) { > $specifier = $1; > $extension = $2; > - if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOx]/) { > + if ($extension !~ /[SsBKRraEhMmIiUDdgVCbGNOxf]/ || > + $extension =~ /f[^w]/) { > $bad_specifier = $specifier; > last; > } You also need to remove the bit about using %pF or %pf below this if ($bad_specifier =~ /p[Ff]/) { $ext_type = "Deprecated"; $use = " - use %pS instead"; $use =~ s/pS/ps/ if ($bad_specifier =~ /pf/); }