Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4045203pxb; Tue, 10 Nov 2020 06:43:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRHlfHZNnMRKck2Qytr3RdqY/p69JW1o7uroSBz5up0a7XaxkIcpATYu6e0dRExR0TCi8G X-Received: by 2002:a17:906:3617:: with SMTP id q23mr20865660ejb.371.1605019396723; Tue, 10 Nov 2020 06:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605019396; cv=none; d=google.com; s=arc-20160816; b=ZtW5NCxtYZrl5QzDEg+Y7RQ3oMbcG2ZXAQGgB+GxQ3fsg1Y9lnlSA4ycxHFWJIX5Sl GwcHi+Yjgql4MUaRwwPUDcKCaWUlPmWwOtjaAdy6JNw2RkuQPwBwCOK4mz4ZpUQbU86T fu6QzkYQJ9W7L0o9TqPHnRm1TQQSg02y/yVUhZCImFxQl9FwQOV5M5Adsj6oJbxDuJ82 CCHCdViOMjn2b5xrITp6q3u3gEpqzLan5oG2LjLjQfzLYE69bwfuI92BNoe/y49sUP07 zOOD1C1PIzn10yjhT/kHR78S0rS56yjSq2rNt8Bx3BFKF+AARQtEyoz2FNfvgeq9M0F3 jdaQ== 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 :message-id:date:subject:cc:to:from; bh=cXHoX3AHuOmcKT8j8VH6RbZhEKizGmSUSkTvJTEnrdQ=; b=QGmgGHmzYRVWL+e+CoeNRpQohb2WVmpnVmoE4+0gkzSyYYDu6l6ucUtTSwWE1RgMqZ qnuCxY3WnJygy6TQdI8itfUK+QNHtn7DnPaVuZV+x1oqDGqrGEwuQwVN6hFJsOTt67L9 uCboo4F4OQ3DH644KNxGyF3LcOtgjGF6eBLjDuTunAExddwdgFygj+H3+ca0I7MqthaV cHIpgPrdqn4fYM9dQY2H9nc0Z8zOCAULLqd6zW5FMdt/ogUIPjz5Yy/tNXmGlc/A9rzC WcuYsivKbnZpp3fm+hZSuG/O4v5mmtlXd1+LLuuVW7tNYG1wLzhennx9PjA9PVpN00Tt aLgg== 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 g18si9647928edq.53.2020.11.10.06.42.52; Tue, 10 Nov 2020 06:43:16 -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 S1730828AbgKJOl0 (ORCPT + 99 others); Tue, 10 Nov 2020 09:41:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730059AbgKJOl0 (ORCPT ); Tue, 10 Nov 2020 09:41:26 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32258C0613CF for ; Tue, 10 Nov 2020 06:41:26 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id qehP2300h4C55Sk01ehPY0; Tue, 10 Nov 2020 15:41:24 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kcUpn-001CQ5-EG; Tue, 10 Nov 2020 15:41:23 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kcUpm-00DkwU-Ng; Tue, 10 Nov 2020 15:41:22 +0100 From: Geert Uytterhoeven To: Jonathan Corbet , Petr Mladek , Steven Rostedt , Sergey Senozhatsky Cc: Andy Shevchenko , Rasmus Villemoes , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] docs: core-api/printk-formats.rst: Clarify formatting {cpu,node}mask Date: Tue, 10 Nov 2020 15:41:21 +0100 Message-Id: <20201110144121.3278667-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Flags bitfields such as page flags, gfp_flags --------------------------------------------- -- 2.25.1