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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 E1D57C49EA4 for ; Tue, 22 Jun 2021 14:41:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CABA160241 for ; Tue, 22 Jun 2021 14:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231966AbhFVOoB (ORCPT ); Tue, 22 Jun 2021 10:44:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:21429 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231964AbhFVOn4 (ORCPT ); Tue, 22 Jun 2021 10:43:56 -0400 IronPort-SDR: 4q8jBg3OzPoi6SDV5nlefjbb7iIUucBBE3t1EVMsxeaHVMyYnbsmNexzz/R5C3UheK2MgICuPo WswDY/VSsROA== X-IronPort-AV: E=McAfee;i="6200,9189,10023"; a="270912498" X-IronPort-AV: E=Sophos;i="5.83,291,1616482800"; d="scan'208";a="270912498" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2021 07:41:39 -0700 IronPort-SDR: D0TgOxHz7vjeNIF82vRPSn4mBD8aa7i11oQRY+c3CiLeKlwJRI9SwkqpZI+twzK4Mjt8abRRdM REl5eNYH5Qrg== X-IronPort-AV: E=Sophos;i="5.83,291,1616482800"; d="scan'208";a="406347546" 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; 22 Jun 2021 07:41:33 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1lvhai-004Uof-Q5; Tue, 22 Jun 2021 17:41:28 +0300 Date: Tue, 22 Jun 2021 17:41:28 +0300 From: Andy Shevchenko To: Jia He Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Jonathan Corbet , Alexander Viro , Linus Torvalds , "Peter Zijlstra (Intel)" , Eric Biggers , "Ahmed S. Darwish" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Christoph Hellwig , nd@arm.com Subject: Re: [PATCH v5 4/4] lib/test_printf.c: add test cases for '%pD' Message-ID: References: <20210622140634.2436-1-justin.he@arm.com> <20210622140634.2436-5-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210622140634.2436-5-justin.he@arm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 10:06:34PM +0800, Jia He wrote: > After the behaviour of specifier '%pD' is changed to print the full path > of struct file, the related test cases are also updated. > > Given the full path string of '%pD' is prepended from the end of the scratch > buffer, the check of "wrote beyond the nul-terminator" should be skipped > for '%pD'. > > Parameterize the new using_scratch_space in __test, do_test to skip the __test() > test case mentioned above, -- With Best Regards, Andy Shevchenko