Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp159284ybb; Thu, 2 Apr 2020 23:39:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLxS3Kl8dbPWdA8iSfe884/S2NA/Ir8aaXkXBIDIYYGv/yEve4MCrI14p92tx3cjR0v5gWU X-Received: by 2002:a05:6830:1003:: with SMTP id a3mr5560416otp.128.1585895974160; Thu, 02 Apr 2020 23:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585895974; cv=none; d=google.com; s=arc-20160816; b=Q5LD72KOtPbuj6rZ3pkVT/1RZZXkVuh5dVNXGvHTSlIJvrUsKPyMz+aV+zAZFAM0V4 Nl9SRQTvmFvHoMp7qd+tGUgMqafan9SytH5tIYJKpl2PNy/tyWjizUtyBFGy91HmOWrs NzNsxcGig4amgInebembPpwi0qxddRxvE9AsfQfBhlAwEufWcaqR0eEf+yHDLSuJ6m+x R5uhtEhvC3mNhrJ/qJ8jNFAad1TM8hdYxxyi9VhdyCAkk624dlglarSk62VnHFu6+Iwo k9RCUHTVkSXNAiF/YDHWAw3XNf63DT/EM68Ofqp7KsgG3ugVAIoQTRjkqz6nR79ZziJD wmCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=nugq6ege54QeIgwM+cID91OkFSf+0JsHx2Joqe6DR8w=; b=HZsmLQILL5omhZCYu6Bd3HOOtrhkJLDsdxKUFX3KkYdpB/n5K5z1ZWaUIe3T3+gzGq L5v/otDSGz9K1Yvq+Xm/0+ARQM455qezYAUdF9+gwyOjDpdFuNG7STRy8mXWka6wgCaC WIVviwQO/Q0wHVZsc8UaUICLwpZWPo3zwA9zL0wK58juFrKo5o5PHy9XAEe4kKoSKwq0 +lHXxgUok4/KgQy1NeXFCyoSLEybvAL51gVHTHjxBX3jybdd388ChgKjBb6Xb/HkY1pl AOMB1K6RMLVgqbw0+1ULdKZ8wOdzs8PWqlEZ8alY7vVxENpYTAUnMfwsh/UVZJLYExGd hCUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g1si3571765otn.200.2020.04.02.23.39.21; Thu, 02 Apr 2020 23:39:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387945AbgDCGhX (ORCPT + 99 others); Fri, 3 Apr 2020 02:37:23 -0400 Received: from mga17.intel.com ([192.55.52.151]:26051 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730759AbgDCGhX (ORCPT ); Fri, 3 Apr 2020 02:37:23 -0400 IronPort-SDR: RZnlD4dae2bMNWDjZOMQ8NYusJLdcxRnpOegY0qosItqQq/vDQB/zAiUPvpbtshvilDxkSB8PZ 4MMV7MzH4L/A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 23:37:22 -0700 IronPort-SDR: uVq+TP60UB0gu+tUe0oDJi+pXCzxXRnZFGpBougHPq3mDYA7uvPNFHvnTQPtYzbVHIepve5iX1 U0ugja7fX5rg== X-IronPort-AV: E=Sophos;i="5.72,338,1580803200"; d="scan'208";a="423425676" Received: from ellenfax-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.38.213]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 23:37:17 -0700 From: Jani Nikula To: Joe Perches , Sakari Ailus , Petr Mladek Cc: mchehab@kernel.org, Dave Stevenson , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, hverkuil@xs4all.nl, Sergey Senozhatsky , Steven Rostedt , laurent.pinchart@ideasonboard.com, Andy Shevchenko , linux-media@vger.kernel.org, Ville =?utf-8?B?U3lyasOkbMOk?= Subject: Re: [PATCH 1/1] lib/vsprintf: Add support for printing V4L2 and DRM fourccs In-Reply-To: <04bb934e551f43540d1daacd2759beacc0b3116a.camel@perches.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200401140522.966-1-sakari.ailus@linux.intel.com> <87eet6mgk7.fsf@intel.com> <04bb934e551f43540d1daacd2759beacc0b3116a.camel@perches.com> Date: Fri, 03 Apr 2020 09:37:14 +0300 Message-ID: <87zhbtkrc5.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 02 Apr 2020, Joe Perches wrote: > On Thu, 2020-04-02 at 11:34 +0300, Jani Nikula wrote: >> Or could we conceive of a way to make this locally extensible yet safe, >> letting callers use something like %{foo}, as well as providing a >> locally relevant function to do the conversion? > > No. printf validation would be broken. I tossed the idea on a whim, and thinking further I could probably come up with a number of challenges, but care to elaborate on what you see as the problem in validation? BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center