Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp912043ybp; Thu, 17 Oct 2019 05:29:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxTdNSXpK7iGALQNkMsuouwhoxenMOtep5FZz2a7NW1xb2ZOPOiIXDLOJ6uA2FRCvYsQAD X-Received: by 2002:a17:906:5388:: with SMTP id g8mr3191895ejo.278.1571315387780; Thu, 17 Oct 2019 05:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315387; cv=none; d=google.com; s=arc-20160816; b=dpJV0O4B9JHSlTX94gDXuASswkyt7k8vJj4pyX7NqW229TYURoFzyFVFupQ28/zNRo dgF0Fw/lgevyP0xB0cJuhVklWgsqXZzfyEKbdA+nUf7cLnLvYQqv3VSs3CE6OGALXBfP WvQu3Btm2GGbcK0V0LfwR+T+hH2Y8PSe+jYuLy+a1+hMYsxPxKDJ5KNptUE0NJbHB45u hXSRGNKcyMjiwDuv5YSa6gOdVjSV03qSpdblSv0beqNGJn9Ny+QglI8lHxviOJu0XMAh k85Jf8uScjqU5dbEEyOueyOn+mJap3CZ8rLm/+bc0m3nRxp3fwm4HP+21/cKRhJzKQcA VBcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aHC7OwfdC69Z0KRAD+EWnIiG2rdK2yJfrgEFtsnvF8U=; b=E1FanMvydRrJmyU4HmxkVxtRNosUcSTDk/EqhJvFeQAKjI5h0I0sYD5uBFvZl9MzWt cyi7u7xN1F8bumSEZiVHDhy7uKoThQDXbjmN9KuHgs8UvOdCKs+TUrROZzFAR9Tu5WrY UxbvgkWRtpQBRVsa5luc71yeHUSeHGWQdCIKZYH8onyvq5jltz2cGAyxQhBoo9Jd/jJR Yj3jzHAiKHVXO1/SPrLiuxbqhzNH9lLS1uMrqf/G7fLqzpZlUXEsFkslgHdVk5IhsxxR ZckQU7+YGv2ClMkBabE4tGao2uqvd71PaX1YIklY/0IcpYVIJmWsFetjs1jJmN212KZZ WCIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E48lPBM/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si1237487ejq.395.2019.10.17.05.29.24; Thu, 17 Oct 2019 05:29:47 -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=@gmail.com header.s=20161025 header.b="E48lPBM/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406318AbfJPQbq (ORCPT + 99 others); Wed, 16 Oct 2019 12:31:46 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41514 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406230AbfJPQbp (ORCPT ); Wed, 16 Oct 2019 12:31:45 -0400 Received: by mail-pl1-f194.google.com with SMTP id t10so11507716plr.8; Wed, 16 Oct 2019 09:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aHC7OwfdC69Z0KRAD+EWnIiG2rdK2yJfrgEFtsnvF8U=; b=E48lPBM/GDUuCdynE2UEkg7yX49YTZcF5OqjdTVOP9SiJNY+ZujZMbUE90ye3ksyQ/ YDCtB/yqcCRv4RDgJxUgDF8vhl+TVJ1tXctryqdVmztCt8tUnlvbmlMDSnrG9FTKrZvw Zx54sUV4sVKIDiugH6R6sLNC0QXuOL2viU/6b2RD6/lql6lF379288QSLxCpKSO6VF3w ftBqPY/NZ7eLUjqtxo5MjhXaiDMFAx514sjsUN7CSECDWZDpkjHh/SBZoWllkWrpAo5e HpGERD9oTgia0mBK7wqPwYfmNuRvvbfenqmTvqMU3fllA92M/51VZJ7JK5BruqctJGPv jbVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aHC7OwfdC69Z0KRAD+EWnIiG2rdK2yJfrgEFtsnvF8U=; b=spnIj1LcESNdwQCLx+HvyaEpWHmYvBgaHyjtd7y4pVnsiI5YAOvQcr72Ko7lPNEAsY PhrJA3Z267E70UBK3EgOU0iuU0jBMErtMh1lCV0EeTO7Jx4Dqz6hEy1WQS/kVsruTXaj 2jO38Zb/NqEOnyXfxTdWtxz9bc/FGdPFZz8M2/WzXuhNjylIaPTLItELc2FGfC2r2lkG nVM8NFOnmkEb/Ez/yfbXQ6wR/Ea9RTj/qghbOHDHC6EIyF5ICRkESydlBXDUVfk5YYUM RQk1PFgOh1ozfNhHb/9e+QXzHvTisSjkAQh8rT6i7/ezYkHIjUi+PmORVdsoxGbLx5YS N7Xg== X-Gm-Message-State: APjAAAXHPGDt1oydYpzPqn8JEs66umTnMYqLyZuwQQzUCZusVG4GiHsS fzXMHhvgE9AMgmcFFZvV5R+9HOL0PDiPaNnho/WOe3pKJrk= X-Received: by 2002:a17:902:bc48:: with SMTP id t8mr41500626plz.255.1571243505005; Wed, 16 Oct 2019 09:31:45 -0700 (PDT) MIME-Version: 1.0 References: <20191011133617.9963-1-linux@rasmusvillemoes.dk> <20191015190706.15989-1-linux@rasmusvillemoes.dk> <20191016145208.dqvquyw2m4o5skbz@pathway.suse.cz> In-Reply-To: <20191016145208.dqvquyw2m4o5skbz@pathway.suse.cz> From: Andy Shevchenko Date: Wed, 16 Oct 2019 19:31:33 +0300 Message-ID: Subject: Re: [PATCH v5] printf: add support for printing symbolic error names To: Petr Mladek Cc: Rasmus Villemoes , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Andrew Morton , Jonathan Corbet , Joe Perches , Linux Documentation List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > Otherwise, it looks ready to go. > > Thanks everybody involved for the patience. -- With Best Regards, Andy Shevchenko