Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1047285pxb; Thu, 28 Jan 2021 06:56:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZmNmWQO3BY8HBMzEdQ6zV+ilaGr7RM5ODUFZ3JUYu2+rr2lpQKLj9XU8+ca6kQv3bu6I+ X-Received: by 2002:a17:907:724a:: with SMTP id ds10mr11203552ejc.28.1611845805974; Thu, 28 Jan 2021 06:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611845805; cv=none; d=google.com; s=arc-20160816; b=voxlsoNRTJ/Xsqa9JScWC4A8/Cl1qZtuJWY3nSOFlWvkQsaYIHlxF7g5VI4DcEU+7V Pr1aTC+C9f8auy0nihK4cRIhWNq/rmP4XXGuKuoxU+ofZ6z72A0zOawTM92rZ0LK3rt5 IfhdGKMaJGA3EySsHuE0S4vlqlz5aNjLNzyXGHB1qpHzMZEP2VPRJX2ZovAi7Oc4M2Gz QuMb9o0aGOkc9G/RzWuuCXhn9GQT+enSlcLERAA04zhd2g1Cgc4okhkj52MmWJ8IjFMo R5qU8vW8vgeHLDx+ZQMwppiJTsxkvB1SWYkDFunzTk5+SwWTHA/LoH7se9QoGxMYoDh2 lMtQ== 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=0NOZG6CIuitdoIvolDoVG4QFwOd67pC3GHxqHo/l8Wc=; b=J6nwUmx1CXXTtQjsLDidp9BEjhSFCpRUl2SnktksNp63QW7exajUY2CUnvmc3L0NCR TapOp1fMVqE3Nj9WlGccA9W1d31UelnkLuRoZWp7zmfIGIHdG07r1Mtji+29Mf4l+ZTm kyeydRgfXIkRXAMZOWZ/U2h4SalmP0S/S0GXzmya+zIDYbc1pZMzmJgGrD5XUPuH58jq PQjNJwqoFlT5tLOrOe0imIlUwgxlmnrSbavRHG3s+pXhjfPyDjRMs8xXPfkl5UNttPc7 FkHuc62n2v//wPQMmdUBKzl/cg29zv1SMxco/sSKs85DB2xdhuQ37FLsKibGAt/Khrps vuWA== 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 r21si2963929ejo.142.2021.01.28.06.56.20; Thu, 28 Jan 2021 06:56: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 S231418AbhA1Oza (ORCPT + 99 others); Thu, 28 Jan 2021 09:55:30 -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