From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FE69C433E0 for ; Thu, 28 Jan 2021 14:55:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE49F64DE6 for ; Thu, 28 Jan 2021 14:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231970AbhA1Ozh (ORCPT ); Thu, 28 Jan 2021 09:55:37 -0500 Received: from mga14.intel.com ([192.55.52.115]:43766 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbhA1OwP (ORCPT ); Thu, 28 Jan 2021 09:52:15 -0500 IronPort-SDR: UFCMLpLVRVM0h7S/BradE+l7gO5glLQ0b2i4c4Z8nwJGI8a2FGkGOWZdX2ABHZwpoZ4UHo7Hmw zwkPP6BvxkqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="179461560" X-IronPort-AV: E=Sophos;i="5.79,382,1602572400"; d="scan'208";a="179461560" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 06:50:30 -0800 IronPort-SDR: u4n4TMgqT90ApYC1tY2cmk2pdY+umiWpga+sUTa6uZD/jBdyeY6Tdvz9+WFVyf7OQLXAyrsbcv ZCbqKUOwRGxA== X-IronPort-AV: E=Sophos;i="5.79,382,1602572400"; d="scan'208";a="354197851" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 06:50:25 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l58cn-0004Pc-5q; Thu, 28 Jan 2021 16:50:21 +0200 Date: Thu, 28 Jan 2021 16:50:21 +0200 From: Andy Shevchenko To: Yafang Shao 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 Subject: Re: [PATCH 3/3] printk: dump full information of page flags in pGp Message-ID: References: <20210128021947.22877-1-laoar.shao@gmail.com> <20210128021947.22877-4-laoar.shao@gmail.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 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. -- With Best Regards, Andy Shevchenko