Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp760724ybl; Wed, 28 Aug 2019 05:04:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJwLHFMfOn7cQs27wDF5bMNbYY1BjQsO7HYK9DXevE3R61Ufgq3mrh3yWdcZeEzoZkkS5e X-Received: by 2002:a63:a66:: with SMTP id z38mr3233211pgk.247.1566993860010; Wed, 28 Aug 2019 05:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566993860; cv=none; d=google.com; s=arc-20160816; b=L9DJ8bJtbcboKFngvi/+Y/BP2nAgJifbHbkxiquK+Ztbp37LyljQfBkfTfmLHxbh5O AxPmSYKnS/eCC9iBt8bDgXLx0B5xl6/CoMFv3zEVX1vNtid6mtNx13r+uYifgh2MRfPH kEhZpgiHQVrMboUuj9/VYQkKoUUqzU0G4Sam4emgV7yUoYjJJeiAcDmjsvpLpRcLN1cV vA5Ms1GlM1Pv0ug4psupUtOqO+CNUHRVMCU9cAMCXpAb8yRVn7yxao/tvWMHGH1Is2Ug b+0qudHH71KKSMFsaATap2M/YS/NKX19G+hEG3yYgfApUMag5rCjoeB8UqcPXjBmx3v+ ucPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7x9QbvCyV5/uMb/ZbOZTelfBuJtIOSZaHEFOwZS1U/k=; b=kSzarv0ZGWmOzvcVJyMH8Wz47wBmBgZx9I0cGN2BIGNc/zn03uMyc6vj0y4Oo3ehxe 8NLkMVpYoWTzNkpPQtFKv05OabI17XO4y0QWj+PpJVL4e7Frk1h5G7RxsPSVvvJ8x8Xs umawuVf1pZ4nqifG8CtfFEY7Gl8BP873PZD0jofdcT55D/wH/hNNTVgp015GaJUthedm ahPxqQoY6yAZeAXTRVliN6pyG/bMB1lwRtBewdxWPpa2XMKb+8Uf6jV3kjanfBpY7nsI jk8ZamWs5qUNeRzJTSCmhu6koLLkYTf6SU1Jq3tS0aSTayLoeCuv7GjWCJqW17pELOLB D08w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y3BEohni; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x187si2318904pfd.200.2019.08.28.05.04.01; Wed, 28 Aug 2019 05:04:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y3BEohni; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726421AbfH1MCv (ORCPT + 99 others); Wed, 28 Aug 2019 08:02:51 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44340 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbfH1MCv (ORCPT ); Wed, 28 Aug 2019 08:02:51 -0400 Received: by mail-pg1-f194.google.com with SMTP id i18so1341391pgl.11; Wed, 28 Aug 2019 05:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7x9QbvCyV5/uMb/ZbOZTelfBuJtIOSZaHEFOwZS1U/k=; b=Y3BEohniDvROSCc8HVpk5lxDFNRFq3WG0SOtiNwmkHU5GinDquwPZBDb4aU0eLfbuM aK678pnnDLR81ayJ3iuVvCL98TcTcxKDmGj74hdliwh0PJipIhsXmFvVzig2T3dJTShN 2qaHRsfYmbf3x/O+aJNIDVUaqAHMp0nj7TF0GLPrgNEfRwJ5NEijtiVgOZCuQnU2FgJ7 YD8nvS3s2Zx6Y7ipsyIXufshNneXGNzEIGPqdZPHKvMvXEPlLTUq9qY+t6wTB0je+zEy EHHtNQ3wFVZBr7wSwmd22ANQpmnURLZDPGe0mwEirZLNFUsT78P+xvvqJy0+I4JTabzn NlIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7x9QbvCyV5/uMb/ZbOZTelfBuJtIOSZaHEFOwZS1U/k=; b=OivtLQ8TZnU16dnYYzpixrHUvbkz3MIm2+XoYmYRHobG5JFWIiNpnlYvkI2P9JmnpV QjS+a/eaa6Ro4e3W4mS914LmECH1OBYnSDuyuiWV77CSTxl4oXeSU84imlHSXpaXLqdb gxSNKtGgia+zMES9gYRuUq/AdzhxipzpIq4SH+XEpVSWdJNBudx5VjUPQG6OQcIIDtPA /gsYKTAWJFNhhvaSQea8SaA0w3BRYqB4S3UQL5kjk8TPojwgoVgxU2NX0gZOHq6Ma28B T/HYhWjwO9HsX/zW/GI0i9+ABwmfccRLe27R0qlHC3EoQ74ec/rR5W1WHv4+HWLMLWKx Zdvw== X-Gm-Message-State: APjAAAXc9LR8q0Rp6AYOvUdGUJvSykppsYanrSkAHmdo+gDedQfgXZ98 LBAKTwQ+5mzfScKjaC2Gzhp8I6J1 X-Received: by 2002:a62:1715:: with SMTP id 21mr4286575pfx.134.1566993770513; Wed, 28 Aug 2019 05:02:50 -0700 (PDT) Received: from localhost ([39.7.47.251]) by smtp.gmail.com with ESMTPSA id y23sm5509638pfr.86.2019.08.28.05.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 05:02:49 -0700 (PDT) Date: Wed, 28 Aug 2019 21:02:46 +0900 From: Sergey Senozhatsky To: Jani Nikula Cc: Petr Mladek , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sergey Senozhatsky , Steven Rostedt , Enrico@kleine-koenig.org, Weigelt@kleine-koenig.org, Andrew Morton , metux IT consult , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] vsprintf: introduce %dE for error constants Message-ID: <20190828120246.GA31416@jagdpanzerIV> References: <20190827211244.7210-1-uwe@kleine-koenig.org> <20190828113216.p2yiha4xyupkbcbs@pathway.suse.cz> <87o9097bff.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o9097bff.fsf@intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (08/28/19 14:54), Jani Nikula wrote: [..] > > I personally think that this feature is not worth the code, data, > > and bikeshedding. > > The obvious alternative, I think already mentioned, is to just add > strerror() or similar as a function. I doubt there'd be much opposition > to that. Folks could use %s and strerr(ret). And a follow-up could add > the special format specifier if needed. Yeah, I'd say that strerror() would be a better alternative to vsprintf() specifier. (if we decide to add such functionality). -ss