Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1190884ybg; Fri, 18 Oct 2019 13:31:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvF5OfIgbWIGZ/DIGJAowcOaYr4hYzJZE4il7q5N5C9Zes/yz41v1T0JqLOivgzHmN1qEZ X-Received: by 2002:a17:906:6094:: with SMTP id t20mr10676074ejj.316.1571430679104; Fri, 18 Oct 2019 13:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571430679; cv=none; d=google.com; s=arc-20160816; b=qmWxq48gzfUw6kIkHRNVIr0ih8LgQyul5FImcPK2KqQeepNLNTQfOqcR12TIYZZjaP As8qQeEsuKg95hetoH9a23pk3NnUYk5LBOcx0A30drqI3l567vDzkGVj8Kr2EY8oqpVF HReld8WUduHW5oAP/B/4TH/tCMao/wCO+ghHJPMAGYdoeb9w+/yG+etxM8I3o2QNmMXw xr2JXpPScKa5PtsdsMDhR2co0y6TvkLoIhkKToxseQuh/JIu7wG+2lnwXiqhomGHLPm+ Y0n/SIXyfVOHo6TrXuityewQ8MFh/dcOeFe4pDNVS36AGOwi4ksibfB1sQ3XNVYatjv7 Mz4w== 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=XOe2lmWPyP0TOvMbItTg3K3YsXljS6K3EJ3IgLCFrGw=; b=hP8gSenLEtxA128pinTD1rzrbvb51KOu4CuLx4HJDYEt24+Lfvu8mi6JDhCUyqxOdA qwkKS/GkbQPZXkZo3OXMC4fWXTdi4YUTUSfDOcH4ju/s7FldxLrwonNOomcgW3xPWzWk 9UO/yRV5ArDq4Y17O/i6FI3jTa1hpaAJNyAYmeD93j7eiU/JX0/BwHJ3lXvMxUN5PPqy JyqJAL/qUIWQTRlfc/YrjXyvGN6k4t4XlEQaWD456SxiJ/+eu4h+f7TyTyU7WoJ9enJ+ OOfSXxrOK7nHhcG9qn1psfHu+c7Oeacy9tRRxRmneyGtuFbYA2OV1ZJbGyOkvasI7wWR C08Q== 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 ov32si3890851ejb.411.2019.10.18.13.30.56; Fri, 18 Oct 2019 13:31: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; 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 S2409430AbfJQPC1 (ORCPT + 99 others); Thu, 17 Oct 2019 11:02:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:54702 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731768AbfJQPC1 (ORCPT ); Thu, 17 Oct 2019 11:02:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7B3B6B62F; Thu, 17 Oct 2019 15:02:24 +0000 (UTC) Date: Thu, 17 Oct 2019 17:02:23 +0200 From: Petr Mladek To: Andy Shevchenko Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Andrew Morton , Jonathan Corbet , Joe Perches , Rasmus Villemoes , Linux Documentation List , Linux Kernel Mailing List Subject: Re: [PATCH v5] printf: add support for printing symbolic error names Message-ID: <20191017150223.aqvz3skqribze7e4@pathway.suse.cz> References: <20191011133617.9963-1-linux@rasmusvillemoes.dk> <20191015190706.15989-1-linux@rasmusvillemoes.dk> <20191016145208.dqvquyw2m4o5skbz@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2019-10-16 19:31:33, Andy Shevchenko wrote: > On Wed, Oct 16, 2019 at 5:52 PM Petr Mladek wrote: > > > > On Wed 2019-10-16 16:49:41, Andy Shevchenko wrote: > > > On Tue, Oct 15, 2019 at 10:07 PM Rasmus Villemoes > > > wrote: > > > > > > > +const char *errname(int err) > > > > +{ > > > > + const char *name = __errname(err > 0 ? err : -err); > > > > > > Looks like mine comment left unseen. > > > What about to simple use abs(err) here? > > > > Andy, would you want to ack the patch with this change? > > I could do it when pushing the patch. > > Looks good to me. > Acked-by: Andy Shevchenko The patch has been committed into printk.git, branch for-5.5. Best Regards, Petr