Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp6095577ybl; Tue, 27 Aug 2019 14:23:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8Et5rbNdCME2coqBoWygv00MAcGGkMXYAvymUv7Dkf5biNZFeZ9CKBD5P0KMetCbuVtBB X-Received: by 2002:a62:f208:: with SMTP id m8mr655451pfh.108.1566941026136; Tue, 27 Aug 2019 14:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566941026; cv=none; d=google.com; s=arc-20160816; b=NZErggf/NpNL2jLd6K4XtJmaRTJYOWp0X4N4nAS/mvaQmu+veG68HdJVSQqX+Mi9yo pbyyI4hWzWSgejeobG6T95nVI3z0HWB4jUCmSomA4q2KqDjaVRCl8nRDFGTjpgApKaDW GbengARdoQxdA99iCYvBnAxwf+74QDw6yPXhTUSTGEESSGPD1Siu0c3pZw/CFpykEA7B OXbUtwY7MkJF4xmlM/tQ/4OEbeWyNTPIWvtiddqPU/vKGCieuVNUFXDYdkoiWAQkrpdF OSJdEGGBQQzFTuW4vwTo/jGpGf9bl5pUhW4iiAhzl8U0c3rsDufj4f4nIP/FIKzFA4TY oFnQ== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=erGU52hqQCdSSu8j0CvPZpnZnYvWEmZ5r2Lm63+HmPQ=; b=bKp5nfdzdnI3q3iMnDnV2ecfla/nvVoJlOc/ix535LOIlm3KXuGAGjCJpktBOUFMuS j3o6M6kbFQRvchSfVQEeMGfnPLYaT8Qo2xmuOetWRjGShB16ctTcwuViNfw6Tb+Hh0Vw VEiWVg/KYv++sHNlo/VtHWuFLQUbXe+ps4gdwnhDbCgdllDN5PQc52nCdnwhFyNkvnci aWcztLjE/1+rZ5TRLwXN2ssAxHwrhC59j594xRwizHEM+Plu/fsf4heZoUAW01wOLtbh Ps6fvqNjvVKDDHw7GFjV9WeyX5Y/umFJM4xDM8kIP96CwQ9+DhRhTb7RQEkhJiH8hwnz KaRA== 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 t21si406446pfe.231.2019.08.27.14.23.30; Tue, 27 Aug 2019 14:23:46 -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 S1730698AbfH0VWO (ORCPT + 99 others); Tue, 27 Aug 2019 17:22:14 -0400 Received: from smtprelay0129.hostedemail.com ([216.40.44.129]:44551 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726675AbfH0VWO (ORCPT ); Tue, 27 Aug 2019 17:22:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 48196182CED2A; Tue, 27 Aug 2019 21:22:13 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2692:2828:3138:3139:3140:3141:3142:3622:3865:3867:3871:4321:5007:7974:10004:10400:10848:11232:11658:11914:12048:12297:12740:12895:13069:13311:13357:13439:13894:14659:14721:21080:21627:30054:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: soap96_877cc49ccf034 X-Filterd-Recvd-Size: 1616 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Tue, 27 Aug 2019 21:22:10 +0000 (UTC) Message-ID: <04b021b263465c62628964ac402e15fd4cdc13a0.camel@perches.com> Subject: Re: [PATCH v2] vsprintf: introduce %dE for error constants From: Joe Perches To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Sergey Senozhatsky , Jani Nikula , Petr Mladek , Steven Rostedt , Andrew Morton , Enrico@kleine-koenig.org, Weigelt@kleine-koenig.org, metux IT consult Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 27 Aug 2019 14:22:09 -0700 In-Reply-To: <20190827211244.7210-1-uwe@kleine-koenig.org> References: <20190827211244.7210-1-uwe@kleine-koenig.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-08-27 at 23:12 +0200, Uwe Kleine-K?nig wrote: > The new format specifier %dE introduced with this patch pretty-prints > the typical negative error values. So > > pr_info("probing failed (%dE)\n", ret); > > yields > > probing failed (EIO) > > if ret holds -EIO. This is easier to understand than the for now common > > probing failed (-5) I suggest using both outputs like '-5 -EIO' rather than a single string