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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCD34EB64D7 for ; Tue, 20 Jun 2023 13:54:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231419AbjFTNyZ (ORCPT ); Tue, 20 Jun 2023 09:54:25 -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 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