Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2009310ybl; Thu, 29 Aug 2019 02:11:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1vYejDLgDUeHquAXTUST5922xwwe4rtjAhRoQI8uCdGEGitQjNKhAJS+CPf098wyXaEx+ X-Received: by 2002:a17:90a:c305:: with SMTP id g5mr6778918pjt.58.1567069880458; Thu, 29 Aug 2019 02:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567069880; cv=none; d=google.com; s=arc-20160816; b=Z3nam6I3fUloAd8KmeGUl/SumXtEUxaYsFMZ9P54/s17aBdnGhLB88MUCe8sPvQ3g9 6Knp1UvjfICnRqsEHeFkA7ya05Ze8/FC4GZbOqMy5bqK2H0wIp46PRcd/1vLLzoKy5Kv 8O5EbJp3Lw6gVPMX1IGBcstvJroFPvNpt0KcZxpWwgjVT+lz55+5jW7qu1fbZTRlr4m3 P7uNueWBy2DnGyaLLJeL+psZWJ4DY7fTWzL8giQFJECXE0+YWy2w6vk0XYNQ8qQyviWk fREQxpQV187QYyXBsQzA8ow6l2Zy3PX4xUjDZlGltcRrgSJiZMTvJPwWRag7VGIs90nf I4/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=489FQGjJLqXDSKSlEr9geJrL+c7/49Z600Juares+AY=; b=rHkfVjqfKLLJzXnzMt3aCLUXKJuwTqErXvoIMexNob5AR/8HnEL/xa7uRks5KRtv1B goG+DP8kIBHtsvIE5lg0iUcG5LnLTCkKUTRbIl3jLitvTtTDY4mgcsOeZlmwf7usaD+X sB1n2AE4Sa2xljJ9FfDRyNFfeu0pEzTT093/IlpxYwLjCtVS1KT1D3boBdzBzlr8cJdn ePx5Ur70clva7RfJB5SAZ3di/LD6A8mwzXzrGNJ6Szy5P16T1izft/fF/P2hFlQhHqgt I2e6WAozZ4yOD81S8RzXmpM5VoVZdXr80oOyuZmGfF/S6oNww37u9KxKqhJN9YD7GRUe mvgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Z64hx8aY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si1611948pjw.46.2019.08.29.02.11.03; Thu, 29 Aug 2019 02:11:20 -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=@rasmusvillemoes.dk header.s=google header.b=Z64hx8aY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbfH2JJv (ORCPT + 99 others); Thu, 29 Aug 2019 05:09:51 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36832 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbfH2JJv (ORCPT ); Thu, 29 Aug 2019 05:09:51 -0400 Received: by mail-lj1-f196.google.com with SMTP id u15so2294145ljl.3 for ; Thu, 29 Aug 2019 02:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=489FQGjJLqXDSKSlEr9geJrL+c7/49Z600Juares+AY=; b=Z64hx8aYxKDT1yQBt+9mE+5YSVj95qMujrRDTYi50my74gMq0cNlWOYCbUqIeoVFhg jZnAb1B6fKq6cOas5/PxOwzDbhOkP+9iNSbocSqG1WsLlEEQPZYGb+YKnKiQ9BLV0l5h 8/RK1EyRP5i8CEFyG81o0PhyW6p8ZVV9IiUMc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=489FQGjJLqXDSKSlEr9geJrL+c7/49Z600Juares+AY=; b=UOM878N9cqiM4eOZ062Vw/ZPjLwhPiewe/JeIfb/cOOUAMDgOhsfeRHGOq28O9xJV2 NyjiFxCknC2rvG5YxakkaK7n21VxJeMQSABwc1YZeM8oqFULSZsu77oYw5ZpEMPV8ys2 5fNO1mLdIgspu9gZPqrnron05JXBt/avM7jzaKImp/GqAT3Wia8bh+w90EDFa1HWpC+v p5dqmek0NfMda7VRCre5XGAikKTmUKWbK3WW7itfIvvfVwMKNTyhUm5h5vgvFVgfFJS5 7MsyhEVJ0pOtM9xRynO9vYiD8fivQ+WD7UuZ8Jy7KyLm0kg2si98W2SwZ/UqOteoPpBJ Yk3w== X-Gm-Message-State: APjAAAUHkPtTvGlwoIC7Gv4sBIz1mwybxx8E5m9FIbPCJgPEiKABOfgA Its0L469lSyORujGWrxysJyZtTl9DjJf5O/e X-Received: by 2002:a2e:3109:: with SMTP id x9mr4525887ljx.19.1567069788536; Thu, 29 Aug 2019 02:09:48 -0700 (PDT) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id v20sm261658ljj.47.2019.08.29.02.09.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 02:09:48 -0700 (PDT) Subject: Re: [PATCH v2] vsprintf: introduce %dE for error constants To: Juergen Gross , Petr Mladek , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: Sergey Senozhatsky , Steven Rostedt , Andrew Morton , Jani Nikula , Jonathan Corbet , metux IT consult Enrico Weigelt , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190827211244.7210-1-uwe@kleine-koenig.org> <20190828113216.p2yiha4xyupkbcbs@pathway.suse.cz> <74303921-aa95-9962-2254-27e556af54f4@kleine-koenig.org> <20190829081249.3zvvsa4ggb5pfozl@pathway.suse.cz> <45cd5b50-9854-fce7-5f08-f7660abb8691@suse.com> From: Rasmus Villemoes Message-ID: Date: Thu, 29 Aug 2019 11:09:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <45cd5b50-9854-fce7-5f08-f7660abb8691@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/08/2019 10.27, Juergen Gross wrote: > On 29.08.19 10:12, Petr Mladek wrote: >> On Wed 2019-08-28 21:18:37, Uwe Kleine-König  wrote: >>> >>> I'd like to postpone the discussion about "how" until we agreed about >>> the "if at all". >> >> It seems that all people like this feature. > > Hmm, what about already existing format strings conatining "%dE"? > > Yes, I could find only one (drivers/staging/speakup/speakup_bns.c), but > nevertheless... Indeed, Uwe still needs to respond to how he wants to handle that. I still prefer making it %pE, both because it's easier to convert integers to ERR_PTRs than having to worry about the type of PTR_ERR() being long and not int, and because alphanumerics after %p have been ignored for a long time (10 years?) whether or not those characters have been recognized as a %p extension, so nobody relies on %pE putting an E after the %p output. It also keeps the non-standard extensions in the same "namespace", so to speak. Oh, 'E' is taken, well, make it 'e' then. Rasmus