Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3927143pxb; Mon, 1 Feb 2021 08:08:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3AVV8TzAow2b7h+qmDe0ayhWXdkV86Q5vNippbSjqQNjVoONiYXN9ww6cqSKYSfUq5Vka X-Received: by 2002:a17:907:9863:: with SMTP id ko3mr18512706ejc.498.1612195725348; Mon, 01 Feb 2021 08:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612195725; cv=none; d=google.com; s=arc-20160816; b=OwpjkXYVNBOcXDTiYauRyLQSKtBy2GfmEuC5dKBznYQ60Eo1S77xn6QJRWvbz87E9j 9pz9EZcNfyoDo2Q5i6ZtLNvBzv+d7WW1jGhJARPFItGOB5cUKoRdK9cbGUhZ/korzSjm 6CzW4j10gep/Uk2fqfFkvg/pUMs6ST2AkYeCa/vWmDmqx/Zm40CrRPJlXnW6iQwlU/rf Qgy+iZEE14tpmd3ZZnv7W8SleoAmGwzgCR0wBdP3VSu7if6qpAqSMIMQzOgsDCqRAlIs ZpPYbPRvAHCMeuQnLIEfVyUsC8qJ9LlDNA4ZWBBeg76nt6xavvI1dvZaMGYlGvTipC4Q sGfA== 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=9oE1WkaA3vhgQ8kkHXuYw5dfZk+xvJIa8hPHxcMyPVA=; b=c3uAVA67ReFjJOe9B/2THaD/wMfcLJtvudeaWWORoVTvD4I+bPPHQ3EET5u7M+L6y2 cA1DgVn0DivNAtpT6FUv9LQHTnrc7yRLAoqR3cEy9mfQjieSfg15EgJPxsWJoV9qFM7H JZP1PS0t7yHMlYJiaZf+c9I/bC1fqjUb4U2YM1ZwXEeN01lCqADjB26kr0jZsCwxe6O2 Sfwbw7ElHyuPcTNUD1tRWOjzgYrNZumd2Ror6wcPrr6HgrLBS8JxJPL8IOvA9fF6E4R2 IQ7xsvxeosHR5GRhyUywItj64iMVVtD2oBMhiBTiWuCF3FL1o8U4r/114dRzLocCTuBy uMnA== 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 t14si11564482edd.161.2021.02.01.08.08.17; Mon, 01 Feb 2021 08:08:45 -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 S231184AbhBAQFl (ORCPT + 99 others); Mon, 1 Feb 2021 11:05:41 -0500 Received: from mga14.intel.com ([192.55.52.115]:28222 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbhBAQFa (ORCPT ); Mon, 1 Feb 2021 11:05:30 -0500 IronPort-SDR: CJtk6+y5BpW7ThlPvL3KEM9UNxFKUGrP8ImbEgYY6d1G9y1dkcbItdeqRgGG6/Fm+K2z55vVpU 1x0quq8EErpQ== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="179929827" X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="179929827" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 08:03:42 -0800 IronPort-SDR: ljDc5msUhmj/4lS3B56cYEn1l3RyBTJnAI3TFKuXb7/PJsJ7erdIUNrxtWc+L3hB5cmpPOojTk mSRyU9R1zN+A== X-IronPort-AV: E=Sophos;i="5.79,392,1602572400"; d="scan'208";a="506891303" 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; 01 Feb 2021 08:03:36 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l6bfo-001AXR-RA; Mon, 01 Feb 2021 18:03:32 +0200 Date: Mon, 1 Feb 2021 18:03:32 +0200 From: Andy Shevchenko To: Yafang Shao Cc: David Hildenbrand , Vlastimil Babka , Miaohe Lin , Christoph Lameter , penberg@kernel.org, David Rientjes , iamjoonsoo.kim@lge.com, Andrew Morton , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Linux MM , LKML , Joe Perches Subject: Re: [PATCH v2 3/3] vsprintf: dump full information of page flags in pGp Message-ID: References: <20210201115610.87808-1-laoar.shao@gmail.com> <20210201115610.87808-4-laoar.shao@gmail.com> <66784ea1-29c7-6bed-ca7f-cd3e7ea9155b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 09:52:53PM +0800, Yafang Shao wrote: > On Mon, Feb 1, 2021 at 9:34 PM Andy Shevchenko > wrote: > > On Mon, Feb 01, 2021 at 02:23:33PM +0100, David Hildenbrand wrote: > > > On 01.02.21 12:56, Yafang Shao wrote: ... > > > Printing that in addition to the raw value could be helpful. Just some > > > thoughts. > > > > printf() buffer is not a black hole, esp. when you get it messed with critical > > messages (Oops). I suggest to reduce a burden as much as possible. If you wish > > to get this, make it caller-configurable, i.e. adding another letter to the > > specifier. > > > > I think David's suggestion will help us to identify issues. > > You mean that we should use another one like "%pGpd" - means pGp debug > - to implement it ? Yes. -- With Best Regards, Andy Shevchenko