Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7872798rwd; Tue, 20 Jun 2023 07:19:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7psZMnB2P7hUrXGtDgjBCAa6/FHbyGQdfJhuQ0ouvufdFh+QJzPKyuPpZyLSkTpj+9PiM3 X-Received: by 2002:a17:90b:3611:b0:25e:91ef:8b1f with SMTP id ml17-20020a17090b361100b0025e91ef8b1fmr12054539pjb.3.1687270783965; Tue, 20 Jun 2023 07:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687270783; cv=none; d=google.com; s=arc-20160816; b=ybN9n1+SNhJQqL5Rh/jEF3aatTd6Vp/X9c17slNxljBbaYBcP5dLdqPy2d5ZTkm6yW +TTWntBDYmAMtbsm8BrsxluQaE5Mi8F6oHvsTacumJzstqrDTlgiAS4eSOlb8oduBYMG hIDWQKe4t0PpaL7KzSWtnOr3EEE6/JTLVFwM4RYU+8BwJh5ClMEpylcfEvJzFAfEvcQ2 +m/yrJA8gJIiEkxuPJJiNRrJyd9yoJ+CNyLNp+Drr49Ge1saYb6KzjFlb2e4lNN0haQD j3h7ewJCeb+vP+AqKyt9LUzIZkFyM8iCNVG5Oz6sftFpa7gnN/xSnQaSwQXO3q0vIH/s LatQ== 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=yNeESm1MQRz+vZny4M82bTTPF0Kr72O/gTU4Qscr6TY=; b=hHBWGoAafl9bSEUew8XxE/HwosMN4WGoemm9Ad3krsA2Y0jMdStp2QeMChCTSFf/HA 0zEoQ46jVDjbZMMWzUEj/kiyKSTXvjGaOpJ3+B98xOiZcS9f4K3nysmMS5lAIJrM1yU1 LmvQsWYI2z62xTXEFPnCk78Ft93xl395EOeN4uOPAVb//0zN3Uh61yR7GIJFyab1kw4A Z0bBoWsxn7VRy5VrtwTF2NIe29GmXkM7BNL+88LnF9cPQqOnxvI/IhdNMgGuIRrEDsf1 s/DubYyOEIDUPFIW0e9cueQq+GAOWekf8thv0h7gDaBsOyW/ttzmh3j546QRwDzAud/L NR2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hBRy01iZ; 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 q34-20020a17090a752500b00255fb1f4a17si9752395pjk.42.2023.06.20.07.19.29; Tue, 20 Jun 2023 07:19:43 -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=hBRy01iZ; 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 S232516AbjFTNxR (ORCPT + 99 others); Tue, 20 Jun 2023 09:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbjFTNxF (ORCPT ); Tue, 20 Jun 2023 09:53:05 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A802A173F for ; Tue, 20 Jun 2023 06:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687269170; x=1718805170; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6r5uVPhDDMiZFH8frBv87Azxgl4/50I7UgigmpU/mYo=; b=hBRy01iZu1n9LiXFKO3PyTIaHYFCF6rNed6yoLgM40fEy1p0yE9EeV2A CHSgNn7l2ZvuVI1GH+niT+UpP2weP3KiIsVEZWwYJDmHxKeq9UjuuEYld Bz7FMa4GHvD52MAV4ySFsWIgaDeezndGi96h1L0yIxqrWlEpS6etF70eg m976sfD0jGLn+sv7zvLaXgFmQSP9KcnRDrX7/UK4yodR+E5jvHxH3rfeS LZ5d/hWcJ05Xsa7v+imyAdXinIKo9i+1dodS9GCvb24lia+08Kl1MhNdI pKUBYoCZTytMwZiPBp1aLre1pxtqLqWSq+YuT+GKzqmvi+agUVaxqAePb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="358735515" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="358735515" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 06:52:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="1044270846" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="1044270846" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 20 Jun 2023 06:52:45 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qBbml-005Gr5-0j; Tue, 20 Jun 2023 16:52:43 +0300 Date: Tue, 20 Jun 2023 16:52:42 +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 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 sound not good). -- With Best Regards, Andy Shevchenko