Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4027489pxb; Mon, 8 Feb 2021 06:20:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhhCwHJ2U/HRbkwEt4FATDRBtnBGNMPbJ0G/u8a7YcxGu3UtoTRjNorExozIUvGb4cUtvy X-Received: by 2002:a17:906:4dc5:: with SMTP id f5mr16994553ejw.11.1612794048842; Mon, 08 Feb 2021 06:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612794048; cv=none; d=google.com; s=arc-20160816; b=zqa5vaQPFq3zftwrjb1mQztY40BZEYJDv2INKcXEwDXQwyjEuOgSx6R/EfliBlIMmG YPWf/CrxjZeL0ez+jmOzD6auRMZ1KPBa1FzHQ7x+/ra0NG9fSwol47fBz5l3evmcqoV0 kwBmI8Vj9Ic30N8ShRRCOkd3mHqY6Oamhl/v7HIOKFKOBkNA1Are7DZ8rOBNlQrLOk7g wkc1YSd26cEEZBSTA4VOeWcktntzvVGl8JbRZ7KMB63GftKFTmEqivTpMnUWdRjy7oGH YaSDvufPp5M9ua5dYiiSJEQ6xumzhA1YNFL/YOW6iqi1tz84cl/LxKmfDTN18A37lhe5 n+4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yIihDZxPKVTZ1cae8PC+4utdo23XVf26uo8MplI1V+0=; b=KUhtyrVv+GBicQ9yao7UaeCbZhlXnYfp0WmOEdW3eo8r5SCzPVf9BFJrzplNpTHPlb tR5yicRRxIyTxrIrAAi11m9dfe/DsjQUlKUnqkiji83vSBRcDTTm9GWYbd5UNxwRN13r 1OustSvACiLATVmPWZcG89Tbf2FAuTxpirjgWSuvO613vhpi97DCCYRVghi9OEYsJEqK 5EW3x6nhBlvHhvxU32CsM+/1eh0b359O04TiUnwNPg59xHSPBmqFLFcag5IrZYUncoJa DYa4zCMUHQN2tIzxK3u0W34ZxmpCTpkfURPF7iW8zrt4T0WrGMfQ+USRS5NrPX+FVx3+ B8Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m1W98MPi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si13555460edi.71.2021.02.08.06.20.22; Mon, 08 Feb 2021 06:20:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m1W98MPi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232985AbhBHOSN (ORCPT + 99 others); Mon, 8 Feb 2021 09:18:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232435AbhBHODT (ORCPT ); Mon, 8 Feb 2021 09:03:19 -0500 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C954FC06178A for ; Mon, 8 Feb 2021 06:02:38 -0800 (PST) Received: by mail-il1-x12c.google.com with SMTP id y17so12747891ili.12 for ; Mon, 08 Feb 2021 06:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yIihDZxPKVTZ1cae8PC+4utdo23XVf26uo8MplI1V+0=; b=m1W98MPiWn4KqSymHwJpE0IYeZ4Kk7EKtE/yH6HlXnJnP+InMrRxcG+AHXDkf6K1m4 ZZFeHbBjc85xHQKYWMRu0QbYyqegM0zJHRWU8yCTos5TTZOSXDY9xxJoGSq8n0pKSXJn oXRjWbdlRowm9TB9qftEVBVIvs0l1qfr18Hc4QC8qoYOd6814V728pj6UN6vQDx1pd+W mX0MKpocW86nHrSM2q6I1ZNJrMpZ5DMPdsQOs+gFKciAQ4TfPfTYpZrbZ/IVb0pyXXgp H1O743tZ6XyH7oqVGMOO+3nTWZ91+LqY6ltl2/E+3y69qobNurfdz+KiQ8S9V2IkY32k 7B/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yIihDZxPKVTZ1cae8PC+4utdo23XVf26uo8MplI1V+0=; b=lvwAKGs/+2bvcrszAciiUOTcvkLp4WHgEn+QtKI034rCoJUUhwbEe+h6Y5itRP6iYK QJ96YGvP4jFaBpu8iTZ+x/qXYdWRKRWIEPK9ULTgt2Z2TsyWbJXEw/6XhlOsp1d+jfbX aRgiqHSjDQgOBZkOhTGZJaPsO7n/HGNu6XN6HpvePbl7RaY/EJB0JOLpU0pX2bbOj800 0YzS6ufuYmz4Xf3igmLaLPBRt2hCjGTRcMmiyPEjAPZmmJfXsir5K4Lt/jzIwDdrj5+l M9A8jcVsu2vwOczDBjxhvKgt+fjQg88yli+eaDebHEC1EV1vh8mffqxvybbvjSKnzTGx akjw== X-Gm-Message-State: AOAM53354Sr3ZobhBbftiy5D2QsBQvyEo23sGcBB/lSdpYE97oSqtefl Ay0zgxdiktSjbp3lqxM/42JSGNOImgHALFvgl2c= X-Received: by 2002:a05:6e02:1447:: with SMTP id p7mr15814152ilo.93.1612792958315; Mon, 08 Feb 2021 06:02:38 -0800 (PST) MIME-Version: 1.0 References: <20210208101439.55474-1-laoar.shao@gmail.com> <20210208122009.GN308988@casper.infradead.org> In-Reply-To: <20210208122009.GN308988@casper.infradead.org> From: Yafang Shao Date: Mon, 8 Feb 2021 22:02:02 +0800 Message-ID: Subject: Re: [PATCH v3 0/3] mm, vsprintf: introduce new format to dump full information of page flags To: Matthew Wilcox Cc: Andy Shevchenko , David Hildenbrand , Vlastimil Babka , Christoph Lameter , Miaohe Lin , penberg@kernel.org, David Rientjes , iamjoonsoo.kim@lge.com, Andrew Morton , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Joe Perches , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 8:20 PM Matthew Wilcox wrote: > > On Mon, Feb 08, 2021 at 06:14:36PM +0800, Yafang Shao wrote: > > To avoid breaking some tools which parsing pGp via debugfs or affecting > > the printf buffer, other new formats are introduced, so the user can choose > > what and in which order they want, suggested by Andy. These new introduced > > format as follows, > > pGpb: print other information first and then the names of page flags > > pGpl: print the names of page flags first and then the other info > > This is overengineering things. We already print in little-endian order, > and the other information should be tacked onto the end. Just extend > %pGp. Andy's suggestion to add another flag was a bad one. > All right. I will do it in the next version. -- Thanks Yafang