Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1444001pxb; Thu, 28 Jan 2021 17:24:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPyWAtoe0UTHmkRbClgTPkgiDa89J50v36mMSisiFqJJQLJTf1Fx0CjNvqngCWjYeDw7mt X-Received: by 2002:a17:906:b047:: with SMTP id bj7mr2258300ejb.335.1611883453792; Thu, 28 Jan 2021 17:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611883453; cv=none; d=google.com; s=arc-20160816; b=gCFzNp463jmp9XCG8IWxiKjQTudUaDTz6lMWnTUKG7yL0OIqUSktjpA8+qoI4Ra1f3 Cd+saotvrA05F9Zm9ayZjffcRTfzH4CkpTlPFSWbS0NdWLgrMRZBWA8rikDoXijpmhOj sRFo1QE5473DwSSJDJMCeBs+TAA7jxLFrM5GuJYdzFLfTohwowmWcIPZiIrYh9gcXLIT D0527zG9kbnB9pgil4MlG9mxxfry/lfYW3tAxL7sjoRJHz2j1GgR9iJBQ4qEQtO8SLmJ wIGdGhG8E2VfjEclYZyaHV9551i1N9tmwOEzGVG2m6bXWxgOnBY5k+6G9GMdHtd3UsCe +YgQ== 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=goQE4d8A1p31u/QXZkkqm0DY13eqBaq7jRtvdi+jOgs=; b=J+tcf6ti+tbuUXgwW9s2tn4zkNl7ggtzUz1Aw1S8326VjCAa/49PB+BJqe2YzqoFYG cs9tQ20mWp7+3pxGYoZ+uqf51fB0WzEVBSabLQlI94GTL27mIV+Q5dBIDlCk8gFrF9E9 pc7/5JG3I817DLs1G9FCry0nsj1fUjtMkEqaBvc5khDyRjorwQxc7JtwPT9WNpNe52jY +xztekZBSLMkRPpicnXvg7KRaqhIQFQQ+w7zBLBGBGeYGfajHhKHP6DR8+fB/ZP8osQU UHurOEi/j2XRGWk/zIZuIZzF5shpF33a/D5HysONyPfo2KAL2AzSZaluEYC/i5nFOb0R SuMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fuJr2Qji; 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 pw15si3789010ejb.567.2021.01.28.17.23.48; Thu, 28 Jan 2021 17:24:13 -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=fuJr2Qji; 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 S231397AbhA2BWr (ORCPT + 99 others); Thu, 28 Jan 2021 20:22:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbhA2BWj (ORCPT ); Thu, 28 Jan 2021 20:22:39 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C1CEC061574 for ; Thu, 28 Jan 2021 17:21:59 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id z18so6903905ile.9 for ; Thu, 28 Jan 2021 17:21:59 -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=goQE4d8A1p31u/QXZkkqm0DY13eqBaq7jRtvdi+jOgs=; b=fuJr2QjiN8x8elyRzGFBO4Zky7J4R4c5jWDr0WNduUlI9Q7Y3cJkbwihblRA0j30fQ cy4eURjiMPULO4tgjiwbeX1mDHcdLajJISBP2Tjs5kMFTyXEMpdcQkGW6fzCRXueyyNy Em6aOO8wr6F+QOFo9FYicBQ0aCP+tfFg/O5fBZfQvOrcsf9gYD9D5dhRu1diI6L5SM7B DXI1tA9RgiOhGwOZYNCCmglLS+iXgnxjGLR5FZfrW8HqUmmPdXDk7r2x8fJCgps0TKm7 thMaDGtLnkhdx8dAnqA4XP42/6ZRJPiJ8w6YoMoTG0xGuzZiSU4txBYJxM16fTi4WdKq Qs2w== 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=goQE4d8A1p31u/QXZkkqm0DY13eqBaq7jRtvdi+jOgs=; b=gGl3/9wDe3NYTw8prtp3e13eMwAC/c23Y3TE0J8RCsm7b08Iu/xevZLtfrBlMbEPHK evVHWO6BpEFz751/tr4+LU3bXHVe8rXRCuYuxfym0Jwaz7tg2UmuLkCpbZFiBwO+JZK3 2OkUpZgi33zH/sI/Mzc2unZg/tn69p39JQmAEPd8nxdPgITpPkeu7eeJrvsIFrKxfITN B7OZszmVz4uWn9PKBDuDBnHzZZ0/ooYuooKEFSx+C+CJTsjMRTtu5Y8p61qTzZRcd7Qf h4/LgZJUUjbybFz+rcEijuBK30zlI/Ypn8PIP2b06M0gV8IO20kXxLvlRO+ZfxkDGx4e vJPA== X-Gm-Message-State: AOAM531qXntPU29l8iuFGMG/NubDH0BouGs3tD4KB/YPHMhO6f82CoLC 4y8v/7v4x0R0Z+zdXBEJUMJXva45QZjV+odvDfc= X-Received: by 2002:a92:5bc2:: with SMTP id c63mr1536599ilg.142.1611883319017; Thu, 28 Jan 2021 17:21:59 -0800 (PST) MIME-Version: 1.0 References: <20210128021947.22877-1-laoar.shao@gmail.com> <20210128021947.22877-4-laoar.shao@gmail.com> In-Reply-To: From: Yafang Shao Date: Fri, 29 Jan 2021 09:21:23 +0800 Message-ID: Subject: Re: [PATCH 3/3] printk: dump full information of page flags in pGp To: Andy Shevchenko Cc: David Hildenbrand , Vlastimil Babka , Christoph Lameter , penberg@kernel.org, David Rientjes , iamjoonsoo.kim@lge.com, Andrew Morton , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 28, 2021 at 10:50 PM Andy Shevchenko wrote: > > On Thu, Jan 28, 2021 at 09:18:24PM +0800, Yafang Shao wrote: > > On Thu, Jan 28, 2021 at 8:11 PM Andy Shevchenko > > wrote: > > ... > > > Thanks for the explanation. > > I will change it as you suggested. > > You are welcome! > > Just note, that kasprintf() should work for this as well as for the rest > printf() cases. That's why it's very important to return proper buffer pointer. > > Also read `man snprintf(3)` RETURN VALUE section to understand it. > Thanks for the information. I will take a look at it. -- Thanks Yafang