Received: by 10.223.176.5 with SMTP id f5csp2039351wra; Thu, 8 Feb 2018 07:31:11 -0800 (PST) X-Google-Smtp-Source: AH8x224QF0k/raJdnr8+NrCdJyKqiBkGKmqd4BGNjNx8QEQfrOSHOSGiYfZ1Qp1X1TpAzv7Aowqm X-Received: by 10.99.99.198 with SMTP id x189mr835084pgb.248.1518103871127; Thu, 08 Feb 2018 07:31:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518103871; cv=none; d=google.com; s=arc-20160816; b=HzmYPpTbL9RkfROYcn2FRkbpaeGH2OeGm0H4L/qySs4pEJEhRhDrjIQuVATDk/F2sb Tj2CsS5s5eDZPWDghzL0Fz/Q+kOudr+yvAT+6mm7BxUQv67e/Q1mNGPu+Xsk3mOxaoyK IXgSlz3qERupFOcHjhgf6sg2SPQEtacIljj/1iiBZjDcILVhaEAQ00UDJDHcKjwUDlv3 QPnh6H4JHwKbEQBBrur6av3GiZWpUr0+w1qP7flOLjbdX2qiUVJhekCFa0PbomatiOKh zhvGFNUBGsrROed5HeJ1L0iwzuyexztJV5nvcmh7xfSJ7nbgKqez7iOeEXPRBQ3AXzl7 eqlQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NenL1GWRx3+Q8OH/srAwem8eNEtwyNRPW33Csjqf5rA=; b=PjjSPvACxMr3h3odD8DTg4w94OwCQuHQb9Q8/Zm5V5qvRjWEjf9Qy71+y7mg9JUjak j7M3633O9xfNJQP+x/sqkGbhqE3OjMVDiNxtMt/Rto9eYSV/3TZZFVtoUqov2y72FY7H 89RKNep/9ZKg/HEhuMke9P+bdH9IOD13OAcREfxYbr4Pb4oqW8iu5n+0ewJBtQtiKYre pkUYa0uEFC7Bu6Px+Y7fZruhC21RSIzuZNEMNTmOed9p6Dwm6YsOUbl2MaUuON+wdu8d 3Q5Dkn6dGeC+9IzHQgnR8Ag49vjR4PBWtMfE8UFGBUNyqyKCNOx8SJ2tWxaOZ9SC6JB5 m4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gG0vICa2; 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 y8-v6si94278plk.535.2018.02.08.07.30.55; Thu, 08 Feb 2018 07:31:11 -0800 (PST) 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=gG0vICa2; 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 S1752391AbeBHP3q (ORCPT + 99 others); Thu, 8 Feb 2018 10:29:46 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:33298 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbeBHP3Q (ORCPT ); Thu, 8 Feb 2018 10:29:16 -0500 Received: by mail-qt0-f169.google.com with SMTP id d8so6646914qtm.0 for ; Thu, 08 Feb 2018 07:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NenL1GWRx3+Q8OH/srAwem8eNEtwyNRPW33Csjqf5rA=; b=gG0vICa26/au0jF6aK+lBbwYZ+cL+TIjtcoxK9NCDsqisi1i8XR2vA8s8N0fZLaZgD 1uCc4jaRWmAyJy/nKWBI4yo4KBIAtj9JBHD0udq9K4RdR64HCjnxsxm/FrreiAITn4HM hro57C3Mg3Ar2aDaEpufZE/0SwxSS9oWIxQr+yCOY1I8x2mF4lS8FGyMOA2Dw7d3I1RH qZDZjGqz2081iwQ92aoJZmViQlIsjaW2f4RSuFdSVcsNqsDlLL/5K2NGPSDl6yd+8SSZ UupPE+/0SZJRq/lDSVXfrfUEZzQmcj9TnfLweGTa70nFH8HsMX5DZIWQbAMf5MFW0Jyr +Z9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NenL1GWRx3+Q8OH/srAwem8eNEtwyNRPW33Csjqf5rA=; b=YNEZOvFU/NL3jMmYDrNcW9nTUHFqrglQxpIr0Zk5WRCMmhZQGWldPOd3orlsq0RVTa js4Pd1AFi6uKNorwDAbmjwUy5gHY9ZxFdJ7z1nbAa8zZtuY7VtBVIyfQnYVsr3qTsGe+ prkrMCPuM4I0GWXU737JsMeNEC4KnZVrtIeBcmBBWSjBYPFkKhvWxRBvSQX1Yut8iceu RsXPkHrVupjBgWrrHmpZPDGnsNtep2sb9/6S9lvJrtWUzBXWJ3tnJlK1ATTXOrsQIFjT h+8ddzlhmelC32wdiDuxqh27bePDrBF1PGM5QjWia/OiG/GZD0hUU6zTZSsJP4k3Wiht REOg== X-Gm-Message-State: APf1xPC/UQVnasfdGZLmm1EyAyUCITMSZIRLrpR9GjNUhTN1GI3JczqE qEQze5Daf0y1yvnC9LnwMOcRYahXqhNpbuEh81o= X-Received: by 10.200.22.170 with SMTP id r39mr1581574qtj.190.1518103755696; Thu, 08 Feb 2018 07:29:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Thu, 8 Feb 2018 07:29:14 -0800 (PST) In-Reply-To: <20180207154116.xvojw3bzmnmexkav@pathway.suse.cz> References: <20180204174521.21383-1-kilobyte@angband.pl> <20180205094438.pfd7ffymlvklpxe7@pathway.suse.cz> <20180205201555.GQ29988@eros> <20180205205817.72dy7e7xzjcnwmhs@angband.pl> <20180207150328.nuk7f76nutq2trcg@pathway.suse.cz> <20180207154116.xvojw3bzmnmexkav@pathway.suse.cz> From: Andy Shevchenko Date: Thu, 8 Feb 2018 17:29:14 +0200 Message-ID: Subject: Re: [PATCH] vsprintf: avoid misleading "(null)" for %px To: Petr Mladek Cc: Geert Uytterhoeven , Adam Borowski , Kees Cook , "Tobin C. Harding" , Sergey Senozhatsky , Steven Rostedt , LKML , Andrew Morton , Joe Perches , "Roberts, William C" , Linus Torvalds , David Laight , Randy Dunlap 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, Feb 7, 2018 at 5:41 PM, Petr Mladek wrote: > On Wed 2018-02-07 16:11:13, Geert Uytterhoeven wrote: > To make it clear. I was talking about "%p" format that is handled > in the pointer() function in lib/vsprintf.c. The "(null)" makes > sense only for the many modifiers that do deference of > the pointer, e.g. "%pa", "%pE", "%ph". JFYI: I have a patch to eliminate those for %pE & %ph. Google for "lib/vsprintf: Remove useless NULL checks" as a first in the series for new extension to print times. I just need time to address comments and resend the series. -- With Best Regards, Andy Shevchenko