Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7499753ybp; Wed, 16 Oct 2019 09:32:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLKDoKT1qNFdxlT8bAVwqj3qepl/5a+s1eBqc7eLRSEIk8FqQF7qAdyK5BfnFWpK9UCZ6r X-Received: by 2002:a05:6402:1514:: with SMTP id f20mr40533898edw.35.1571243550944; Wed, 16 Oct 2019 09:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571243550; cv=none; d=google.com; s=arc-20160816; b=HZC/ksnhbAuNkg7LQVfXR/ZVOmgYEv7cixqJwCIYywR1figv4vwOgkNPXGdNBYsQql BhPVaFGmv+rJLw1I7VRH/VXVRrkY+NNKuDSmEEN5xe8DnvJDce1vp+9X1uCIw3iZPRV/ BTwvd5b5/qWyFe0KWMaZdJhoR1rjPiZVK8e9MFJSN7Dzi4hw6gM54tKVRwX9WGRPB5UX TTaQD2o0rDHh2SpoVGlWkH3bPaQQJ/3Hb3LzO7RjjF8ZFxl71o307smKcXmdjxNpJ3G1 4Zzl5HLMWieSmwDbxd7q5YEIwx+7n6s5+vt3t57kqNcwzeBOLi0GWA4S58C6jGz6OWZp 8/eQ== 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=re+MQJMNoXc0SyyqBOccdzlpuZO7i50K91G3JJ9DKiA=; b=O7CBoEwkDha8KrkwzdbtET3CgDviOWmiYjJkIAyoYCSEvuLTWjZTy2RnPJWSuS8BOC Xl4ph6HoLf7MQYbtX+nrzuRayCUElQP8HkY1GGNBNHtipEsK6oQniBwGKijGZbr5lgHm meGlnvUzYWH/Wl4TtOY96ND1ZY6e5mlYCKxJs8S8bqv9E8R3ucVK4cd/hUPiGeSnWwS1 913exfplCKOaStLatZeraALCl+ciawMpMtPNL2sJ0Sod4hZuFVRRRwIaoBkxwzD7hYmf eoKqVMn58qz6ULeRjH2tmLu+YutZVP80fYgiIgWg7Mvpr9QjnbMmqp/R4aM2HjpIrrrZ Xi9g== 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 r19si15740319eji.376.2019.10.16.09.32.07; Wed, 16 Oct 2019 09:32:30 -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 S2393869AbfJPOwL (ORCPT + 99 others); Wed, 16 Oct 2019 10:52:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:34590 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731578AbfJPOwL (ORCPT ); Wed, 16 Oct 2019 10:52:11 -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 63599B448; Wed, 16 Oct 2019 14:52:09 +0000 (UTC) Date: Wed, 16 Oct 2019 16:52:08 +0200 From: Petr Mladek To: Andy Shevchenko Cc: Rasmus Villemoes , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Andrew Morton , Jonathan Corbet , Joe Perches , Linux Documentation List , Linux Kernel Mailing List Subject: Re: [PATCH v5] printf: add support for printing symbolic error names Message-ID: <20191016145208.dqvquyw2m4o5skbz@pathway.suse.cz> References: <20191011133617.9963-1-linux@rasmusvillemoes.dk> <20191015190706.15989-1-linux@rasmusvillemoes.dk> 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 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. Otherwise, it looks ready to go. Thanks everybody involved for the patience. Best Regards, Petr