Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4772288pxj; Tue, 22 Jun 2021 07:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuaHUE+BtTiZL/aHTavgueypiLd3OGIdruruzIO2yaQ/M726+e5VUHiXRXqn9XxPWsp1s8 X-Received: by 2002:a6b:310b:: with SMTP id j11mr3065302ioa.151.1624373064553; Tue, 22 Jun 2021 07:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624373064; cv=none; d=google.com; s=arc-20160816; b=KLmgdmC2ag/lBzz1M+Ezy5XwGT1s7N+/RWU4HjFnI3Lrh9zqd/Scn2taX9EKPQ4DJg ln4LINtgygoP+H7Ovi3hd0A4bhX78xSbHo+MWhe0ARg10SJzEpO9xJDRf6kWvKeNpj7J FRh5qvfgIFm3CpMCmqJFMZl5/HicGhX9qc11MrNqGZVhtXG7HVXc5Wpf2cFnVtnxJYoD tSEAmBtRAZ9/fQ6fNZsANFDPklascJK8x3taainJpt5G13KHk6VwIngMv4fTyM/GTCmV nJo8ysZYYV0Ydr/t7ijhtp7QjXOdo5hRx2xVHogxe80Gya/5Xc5iQDgws6e1tXj6QWVS jooA== 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=LDqOGP5+T0pLvWa6zMaBRyVCNvX31ZZjLwng1xfHUoQ=; b=FY6r0CytYrQJiVuqJA5kXwjt2gBeCJvI5H+slDoxwD+OwhriNLa5vn6I2xv2jM7ta7 QMZp8TMobW9pP7tR1FTTvQTU2Zu+ieNU4MD/VaE+qJWAbnJFDUEHV6wNynylwPk+wtzw XQ4gPuCW/CyP3/IlU3C013O48VCuQVoXYMky9ys64K3AO1R3ckWMeNLnPKwO+H2zv2oq oO3R0a1eeY3dYof4Xhizdso16uFmpbQavRrDMWxtVyIRq1CHs8qda1NTN+Fjiy9JGPe3 KSq50dEznCYIvdOXHy0H+CpzVYBkHSD8TEu2TIT8TPZUag2zUxiS9UVYiFUuei+c7e+Y ZhDg== 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 h19si13630290jaj.37.2021.06.22.07.44.10; Tue, 22 Jun 2021 07:44:24 -0700 (PDT) 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 S231983AbhFVOn7 (ORCPT + 99 others); Tue, 22 Jun 2021 10:43:59 -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