From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D766CC4742C for ; Fri, 13 Nov 2020 22:04:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91BF720B80 for ; Fri, 13 Nov 2020 22:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbgKMWEk (ORCPT ); Fri, 13 Nov 2020 17:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgKMWEi (ORCPT ); Fri, 13 Nov 2020 17:04:38 -0500 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF8BC0613D1; Fri, 13 Nov 2020 14:04:37 -0800 (PST) Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 59F91734; Fri, 13 Nov 2020 22:04:37 +0000 (UTC) Date: Fri, 13 Nov 2020 15:04:36 -0700 From: Jonathan Corbet To: Geert Uytterhoeven Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: core-api/printk-formats.rst: Clarify formatting {cpu,node}mask Message-ID: <20201113150436.40a256a7@lwn.net> In-Reply-To: <20201110144121.3278667-1-geert+renesas@glider.be> References: <20201110144121.3278667-1-geert+renesas@glider.be> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Tue, 10 Nov 2020 15:41:21 +0100 Geert Uytterhoeven wrote: > Clarify how to pass the field width for bitmaps, and mention the helper > macros that are available to ease printing cpumask and nodemask. > > Signed-off-by: Geert Uytterhoeven > --- > Documentation/core-api/printk-formats.rst | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst > index 6d26c5c6ac485cec..160e710d992f3a36 100644 > --- a/Documentation/core-api/printk-formats.rst > +++ b/Documentation/core-api/printk-formats.rst > @@ -531,7 +531,9 @@ For printing bitmap and its derivatives such as cpumask and nodemask, > %*pb outputs the bitmap with field width as the number of bits and %*pbl > output the bitmap as range list with field width as the number of bits. > > -Passed by reference. > +The field width is passed by value, the bitmap is passed by reference. > +Helper macros cpumask_pr_args() and nodemask_pr_args() are available to ease > +printing cpumask and nodemask. Applied, thanks. jon