Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1486263pxb; Fri, 13 Nov 2020 14:09:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4VvOyS4RR26Wzf/xF6orO5zJsxZVzC0jQDBSUDjQeULDh/4QRMLORBKO85ByAt/pn2T9B X-Received: by 2002:a17:906:3a02:: with SMTP id z2mr3985795eje.452.1605305367794; Fri, 13 Nov 2020 14:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605305367; cv=none; d=google.com; s=arc-20160816; b=MEk5Ic/mUCArrEIv74n/3GVWOSjvXTu9GJyMlxjAH4fDk8aD+Wk61YWp+zi7yENxws XRZ417qx3HZg0FLyH/7l9Ne3b1GX2qykMwZQ4aB6hok6L9aGz0kxqs5reupWZlPGqU5R OuN0jrRnddNSd7tOsBhSvOq6X61NvG4pMvkeBA5klcLH0yUcjqp6EtrHAY4DSXRrL7aC 9v9k/tQqQh2LHCdU0JjPsOM+RCXCq9IkZMqOYsQZoefX91goV2bKZ3gRff4Tn0YEU/dR 3oObqNU58v1z1zdjhLhY/0gU4VIb5ji9si7BuTVD/dyP9QxJdYOUz9NB+jOGW9r1cYs/ M51g== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Zj2LtxLJqzCqU+L9NRZ3uaiPk4RadxXpCGdN3v22LWc=; b=ypLOQcCUXfeER78XfzeznXEBHUnhjY+/UzyRfqOtsaWs2RB1ZzhHQ+e5Ok1MUycxCc BwFlGt2FofidCcnT3759zi7dAWUYG8tSYeVn/X6f9gawpk/GjsNn0L2aiLqZrz4Nh93q cEApnDaG/wwQxeX8XVhhH4r5hox+0C5dZ2yfVq8O1l+pvVT3JyYgaA+0ijjIxuJYOdhe t/rqewwHD5GfqIQHi5ihvYG/9EzSCYhTuQE4btS8qkkCupqeW3UIgBsqfrVtTrYUiIFr fAgdMxXxNEOZBftkW6Cyo6ugfnmSQLmivIpRgD3N0VZXXTshmhjYdO8CLkDAGa/apLJD bCnA== 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 d23si6759522ejr.170.2020.11.13.14.09.04; Fri, 13 Nov 2020 14:09:27 -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 S1726375AbgKMWEm (ORCPT + 99 others); Fri, 13 Nov 2020 17:04:42 -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-kernel@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