Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1225762pxy; Thu, 29 Apr 2021 02:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwtWLyq8lN8CSP65djEcNNl4I5bG9K0RyDmd1OwFRSRYY1RpWdo/tPOmApo4bkhe0lsnSc X-Received: by 2002:a17:907:7745:: with SMTP id kx5mr33448893ejc.3.1619688333823; Thu, 29 Apr 2021 02:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619688333; cv=none; d=google.com; s=arc-20160816; b=tR4A4o8i1v5sCbvSqbw6j3iUPfbdUwfGU7R3R3Jj4tBnI2QW/O/JcesETvB77wAEN7 R68i1aFPQWuOdPM2r8ljUkDcxkg/F7xpaoFo6+tSVxuyB/XFtoBUw4ysOwXhFX14XLIs WEDXtwnXAMsT2LNt+1vxTWd5WG5h6aet14xeK7BczRYiE+IICkW8uTekKLECtOxhDBXs o35v9S/x3c7SlUW4Bp9jLCrbVPHzneCr5nxYJfRgSbMqeGcAVyTW3R3F78InKRRREIlQ H1nJZHxAOZInQzHZmaXV5mzBM1id6py84uS6LFssUmZKW7BRWLGMTM9tQCDuQiQuQvxY dqag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sFsswHYzmnsCtIuWtaEE2puDhfR/SZTmIoW2PDCisco=; b=GBMfm7ja1IKBW+9yBDcYJ+adeUN1YoaSfHaS+XAphytyrHtJq6LnRDniWiSG1alJDw aqFpfAF5f/TLf/oYvp8oMLKWGMb2cxd74o1rX2pe5qPI+0mAoZ4PMlxQ/C5Ui9/IfF1P invG3cfNB9pcF4osP4k0/Dbc6uXYTk29mPTTkk7+jgMOD6yPi85OKEfCMXLCuLiAhiJk 2LtbDo8obiZS1jD+7bG0CgmRPgAn3A08Dn0QJlj/s+ilWHYYI5dBncWW/LBJ3FQrq8c1 /z+35I+gtn+NrJpPfzhj8oH21u3dYWMUtHApFhqv3A/itWC/xqL64OGVfotRSn/dvw3I tsRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=YHGyFKkt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si2352603edx.591.2021.04.29.02.25.10; Thu, 29 Apr 2021 02:25:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@suse.com header.s=susede1 header.b=YHGyFKkt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237417AbhD2JZ2 (ORCPT + 99 others); Thu, 29 Apr 2021 05:25:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:33476 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235125AbhD2JZ1 (ORCPT ); Thu, 29 Apr 2021 05:25:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1619688280; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sFsswHYzmnsCtIuWtaEE2puDhfR/SZTmIoW2PDCisco=; b=YHGyFKkt5FLMqBLrnT2gKXkMJrFdXxGIaYTsZwHTkZl/aJrBSyIWADryXxu0HwVHPiX68g rmN+DZf1OlhdUd4aI/utae5zRHaqzTu9b+gp/ClXNvy1rzfYl9xTXY70yup6WHBLQUELlu NxxbuOjqbhatlpjTgDyq0oNC5djBdXE= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EB95FAFDC; Thu, 29 Apr 2021 09:24:39 +0000 (UTC) Date: Thu, 29 Apr 2021 11:24:39 +0200 From: Petr Mladek To: Andy Shevchenko Cc: Jia He , Linus Torvalds , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Jonathan Corbet , Luca Coelho , Kalle Valo , "David S. Miller" , Jakub Kicinski , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Johannes Berg , Linux Documentation List , Linux Kernel Mailing List , "open list:TI WILINK WIRELES..." , netdev , linux-s390@vger.kernel.org Subject: Re: [PATCH 2/4] lib/vsprintf.c: Make %p{D,d} mean as much components as possible Message-ID: References: <20210428135929.27011-1-justin.he@arm.com> <20210428135929.27011-2-justin.he@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu 2021-04-29 11:52:49, Andy Shevchenko wrote: > On Thu, Apr 29, 2021 at 11:47 AM Petr Mladek wrote: > > > > On Wed 2021-04-28 21:59:27, Jia He wrote: > > > From: Linus Torvalds > > > > > > We have '%pD'(no digit following) for printing a filename. It may not be > > > perfect (by default it only prints one component. > > > > > > %pD4 should be more than good enough, but we should make plain "%pD" mean > > > "as much of the path that is reasonable" rather than "as few components as > > > possible" (ie 1). > > > > Could you please provide link to the discussion where this idea was > > came from? > > https://lore.kernel.org/lkml/20210427025805.GD3122264@magnolia/ Thanks for the link. I see that it was not clear whether the patch was good for %pd behavior. Linus actually suggests to keep %pd behavior as it was before, see https://lore.kernel.org/lkml/CAHk-=wimsMqGdzik187YWLb-ru+iktb4MYbMQG1rnZ81dXYFVg@mail.gmail.com/ Well, I think that this is up to the file system developers to decide. I am not sure if the path would do more harm than good, or vice versa, for dentry names. Best Regards, Petr