Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2890037ybe; Sun, 15 Sep 2019 03:02:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2x0tp5278Yq67/mEg4HnOcafjCJG7K36H4A2xWyVtmXlyrKvLqnNxw8g5N8NDtx10haM2 X-Received: by 2002:a17:906:308a:: with SMTP id 10mr43537922ejv.277.1568541776924; Sun, 15 Sep 2019 03:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568541776; cv=none; d=google.com; s=arc-20160816; b=v1c5lYLg0KQJ0x45+MuwA3WZKz6oce33dNYLmfrRVlFhu/tAVShDS6Avx+Fd5+FQaQ j+9Iuxe+1JimAewmXN+pqeJ2bWN6hlZput1Rv6XdKH2VgEy580oDzYWro5wfgZhk4LQA 5H0hdxN66fdAvDgidZ6k6saZjsvM02Ldbkp/UQdzsYIinWlgf9vwB3JsGEl3QBdiIgeB 6k0U3/C5+zM9/VbTsbnCbSpk1CHi3IkJ8NZPGD8WEYvYBWCW56KoNWEdQvxTIWDNKO7W Cn0bejG7jzm4JGdsP5AR9SWfe3cG+FzKBS4p268zpHcAno0HiJGZo9i5H7IkVKGOUVud bn0A== 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; bh=Fp/z0e8DnLUYAYfIEcY9Abamy6IRRfDHOF2LAjib8Ag=; b=Ug1mTJS9X5hjGhStZAZoYh1rL2zll+wDLRj7eFTJYmpO36TFXew72RfQexNS2p8qGO vjR6HQpPMJVYSYBeNl2UZoSSHdQ6x4gq/hJKL2aEiKrrfw9VmgTsrxMhfZr9pxCKRjSf uLJJ4zEYehnKl8leOy2AzkUIeh/38+mDPkT3OKTPDWsu9BWFNOa5Vge7AwJ2jfUnSGU3 8hS4plV9nCQTOs78KKHUVwNY6G381DhcU9xoohqa/XFZRADNub3RKIBeBN8lZ9Qdl9/m jFXF1cEBXbjFZJI9rb4EzDQpp33z8wYqqKuVHStnmg++zalPJGPp3mJMhUu0L7vXruH/ OT/A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si4419571ejw.335.2019.09.15.03.02.19; Sun, 15 Sep 2019 03:02:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfIOJnb (ORCPT + 99 others); Sun, 15 Sep 2019 05:43:31 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:38076 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbfIOJnb (ORCPT ); Sun, 15 Sep 2019 05:43:31 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4F07380ECE; Sun, 15 Sep 2019 11:43:14 +0200 (CEST) Date: Sun, 15 Sep 2019 11:43:06 +0200 From: Pavel Machek To: Rasmus Villemoes Cc: Andrew Morton , Jonathan Corbet , Andy Shevchenko , Joe Perches , Petr Mladek , Sergey Senozhatsky , Jani Nikula , Linux Kernel Mailing List , Uwe Kleine-K??nig , linux-doc@vger.kernel.org Subject: Re: [PATCH v2] printf: add support for printing symbolic error codes Message-ID: <20190915094306.GA1060@bug> References: <20190830214655.6625-1-linux@rasmusvillemoes.dk> <20190909203826.22263-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190909203826.22263-1-linux@rasmusvillemoes.dk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2019-09-09 22:38:25, Rasmus Villemoes wrote: > It has been suggested several times to extend vsnprintf() to be able > to convert the numeric value of ENOSPC to print "ENOSPC". This is yet > another attempt. Rather than adding another %p extension, simply teach > plain %p to convert ERR_PTRs. While the primary use case is For the record, I hate manually decoding errors, so I like this patch. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html