Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7876993rwd; Tue, 20 Jun 2023 07:22:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PnFeUce75F4Z7wLabrEZDUsyMBWm6cM0QB9VBSiiauqzVIzSZaC3Cxz02e9zoZDftqDir X-Received: by 2002:a05:6a00:2405:b0:641:d9b:a444 with SMTP id z5-20020a056a00240500b006410d9ba444mr12508813pfh.31.1687270969213; Tue, 20 Jun 2023 07:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687270969; cv=none; d=google.com; s=arc-20160816; b=hFr6iEPQBnSchBJ1lqiQzFltNmEV5rxtHJdfn7w1D7Hywd3GOWJL6OPuW82Lf0ho9t 7VxGomDRGysWQkXzkwpco3iW+A/ciM65uXakDRetdzxzFGNN0ssJzAbOhQACNqjL8CcW dsx5ZY2sQNsjrIpIY7G/WVvBGn4IQLq6vOmhUf1muBgAgJNwscbN4C2PGy53PSsIE9pF 3YUEUHm1ElJS1I5N/x2LyPg7OXzwzq80VYtz0GXEH9iIGIsYbRr9/P5hAiZCN2dyzbLB o90s3WiZNy/Wg5GXwIy046lnHYDxllXob/IBUWvvNaXoIHDs9Mp4H49F0268JtRJcTiu SH8w== 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 :dkim-signature; bh=PLEasTxeyWtZ15kfkpkF8ks86tMeKF7Cv31HnCPwhtI=; b=ZeVsqBe6H5xIeKMh6FtkGfd3Wj2Cr8PRlXlkpB9CQuO+HniNy8GWocKI45LcXdDJEm dqp9N0bYWHC3HdwNo2lIyAFZxBZ8xuDIj3j5bjb89nLxQj74oleI41VhO+6JB3z/bFQL DEVp/co2wznzNL/PZX6ptsMj46YIgr0Jda1iDxHbEdOSQ5mcmHVtVT4c5W+6Y0Gq0xyd zGVxJWy5MgYgDQuuitcwxsU9/eLSPqtk6DNxRUylP4c963koWHN2EB9C0L0gdQp8et7o fIfC9B9BHdnlR3CWNrMv5+XBYwE0prgIgSbcmrNbx4yFM/rmr4IFCPaTUpud4ZMQNpSd Vbxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DdjxaDio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020aa78885000000b0063286f81d35si2015767pfe.262.2023.06.20.07.22.33; Tue, 20 Jun 2023 07:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DdjxaDio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231246AbjFTNyY (ORCPT + 99 others); Tue, 20 Jun 2023 09:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjFTNyX (ORCPT ); Tue, 20 Jun 2023 09:54:23 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB5D4A4 for ; Tue, 20 Jun 2023 06:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687269262; x=1718805262; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Z0Fu+TI8djDx8Ao4jv5siJlT0P+wxApXMF8OfgCFHaA=; b=DdjxaDiotvpr3s5FrvKk/nVIabd/6itCPhpaPc+kiocx5QHvemyqyyKK DNYbsW6xdDik6PMOjtwhHrHJpVl43r/mWSVaO0KK2PVZxMZ8dce07xLJ7 WeJr17RUfwjbBy64DQpCsWbyuSMQ6amtl8lL2vJIBRYaZC2SDIZCHlo2E M5fp0d1YbwvkdSnONB1roxcP00g+6qOBvuO3WMqg1SOgkY/jClEwcp673 I1gWu2MF2/JuZRamorMPMV1ADH93yB4xjFmgZJmGyhxpnBNdrD4wa8ntW cpwElbNs9n3cDDCtRC3bT9riudtswMJ803HgsFaCQpqfAjafzjoC9aTUf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="425818503" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="425818503" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 06:54:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="838214610" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="838214610" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP; 20 Jun 2023 06:54:17 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qBboF-005Gs2-00; Tue, 20 Jun 2023 16:54:15 +0300 Date: Tue, 20 Jun 2023 16:54:14 +0300 From: Andy Shevchenko To: Petr Mladek Cc: David Laight , 'Demi Marie Obenour' , Alexey Dobriyan , "linux-kernel@vger.kernel.org" , Rasmus Villemoes , Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Lee Jones , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Steven Rostedt , Sergey Senozhatsky Subject: Re: [PATCH v3 0/4] Make sscanf() stricter Message-ID: References: <23df90dd35874fd89c64906e6a6de164@AcuMS.aculab.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 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 04:52:43PM +0300, Andy Shevchenko wrote: > On Tue, Jun 20, 2023 at 03:34:09PM +0200, Petr Mladek wrote: > > On Thu 2023-06-15 14:23:59, Andy Shevchenko wrote: > > > On Thu, Jun 15, 2023 at 08:06:46AM +0000, David Laight wrote: ... > > + %pj or another %p modifiers would be hard to understand either. > > > > Yes, we have %pe but I think that only few people really use it. > > And it is kind of self-explanatory because it is typically > > used together with ERR_PTR() and with variables called > > "err" or "ret". > > j, besides the luck of no (yet) use in the kernel's printf(), is > described for printf(3) > > j A following integer conversion corresponds to an intmax_t or uintmax_t > argument, or a following n conversion corresponds to a pointer to an > intmax_t argument. > > So, I this among all proposals, this one is the best (while all of them may s/this/think > sound not good). -- With Best Regards, Andy Shevchenko