Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp499052pxb; Wed, 11 Nov 2020 08:49:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyevOjdij/1eE2Nq8j/RfyH80Bdj3xmftCSGoZ/9qi4w3l2e8iO/HkidDuh1hWJGPgLI5We X-Received: by 2002:aa7:dd4a:: with SMTP id o10mr323815edw.109.1605113355058; Wed, 11 Nov 2020 08:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605113355; cv=none; d=google.com; s=arc-20160816; b=PK3PKjAKvjWV8q3jgT31SpDkbswRNlqMT7UKosQfrEYYPtwWbY84LlPvR8a9PdeROX YDSXJZTIqGLCHd1NO2+0RvQcDpnHWVx9oKTK1QXbT+dGViGedxCOTfPHmceY/dULYHUW d23LJxlOOAKPPlR/Wu/ZCJlJLEJtGy4WY2OYdSvPZe3wznFD0b0/KSHqLTtTOn8YDKxB 21d3dtq6qjfjfacq3ZCQM7tAJoAwJh/70m9Cwv5ch+wNH8kHH8mMcKGfP/vRR/01OtBP DvoTNT1M+tKQJciFN0ZsmNWhuVy7GI6xeZUZXMTw/a+f7SY2cy67KvCbqIFmPkS43HFs 9xeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=20YotOnJO7jSFqiVInzzo+NE5+SuQIzw1CNPbYGejrI=; b=ilp/3ac/y+dSoJyI1ir7fegshybmQzcmQAohj/Pa/thm2D6lADwjl/+zWTYNWAkErF PYd/HIeg7GobsI+Q49jEIHzYf3Dq9i/Y7TvyX49lKjVgtZhQt+NnR5QLynCNyKFIKsji KVwnn3FkAbVrXAqG8IvxNSagBhm2VqhU8Q0RS+iOrK8tkd8Quep+phY+ADwe2eFNUEua lKp43OPCf3bcY+zS70NsaK8exl2vKu6FWOpcOHwcOZEB7wKypEhmavU+OTbiKwL1pfof +zRZA7nCDMFv7W2udC+5g4lE7F0gVl9iomNtkXwteJC++FCVad7SzLRT/mvXyxsus0vi i4Fw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu21si1907053edb.78.2020.11.11.08.48.52; Wed, 11 Nov 2020 08:49:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727494AbgKKQr0 (ORCPT + 99 others); Wed, 11 Nov 2020 11:47:26 -0500 Received: from mga11.intel.com ([192.55.52.93]:30950 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbgKKQrV (ORCPT ); Wed, 11 Nov 2020 11:47:21 -0500 IronPort-SDR: SALwNfhBZNDenf591k52Ny+hSFwP3e0ROX0R5eMw0YzZKb4tmzXjTsNZzErmjBdcWOheFBmQUm wuE3Il2AHOFg== X-IronPort-AV: E=McAfee;i="6000,8403,9802"; a="166665042" X-IronPort-AV: E=Sophos;i="5.77,470,1596524400"; d="scan'208";a="166665042" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 08:47:17 -0800 IronPort-SDR: taSB7atfiX84dKZCdsTjr/r7vGfhWCmZDfH93ZmS/DNjCJnF6wlZKsXv04kLN0j4WPRxPLNXHe SHjl32LHBvQQ== X-IronPort-AV: E=Sophos;i="5.77,470,1596524400"; d="scan'208";a="473915011" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 08:47:14 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kctI8-005xVm-BE; Wed, 11 Nov 2020 18:48:16 +0200 Date: Wed, 11 Nov 2020 18:48:16 +0200 From: Andy Shevchenko To: Petr Mladek Cc: Geert Uytterhoeven , Jonathan Corbet , Steven Rostedt , Sergey Senozhatsky , 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: <20201111164816.GN4077@smile.fi.intel.com> References: <20201110144121.3278667-1-geert+renesas@glider.be> <20201111152933.GA1702@alley> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201111152933.GA1702@alley> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 04:29:33PM +0100, Petr Mladek wrote: > On Tue 2020-11-10 15:41:21, 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. ... > %*pb 0779 > %*pbl 0,3-6,8-10 > > For printing bitmap and its derivatives such as cpumask and nodemask. > > It takes two arguments, see '*'. The first argument defines the number > of bits in the mask. The second argument points to the mask. > > %*pb outputs the bitmap as a hex number. If the size is bigger than 32-bit > then 32-bit values are separated by a comma. > > %*pbl outputs the bitmap as a range list. > > The number of bits is passed by value. The mask is passed by reference. It can be improved at least by replacing mask with bitmap here. > Helper macros cpumask_pr_args() and nodemask_pr_args() are available to > ease printing cpumask and nodemask. -- With Best Regards, Andy Shevchenko