From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752611AbeDDX6W (ORCPT ); Wed, 4 Apr 2018 19:58:22 -0400 Received: from mail-pl0-f49.google.com ([209.85.160.49]:39364 "EHLO mail-pl0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752484AbeDDX6V (ORCPT ); Wed, 4 Apr 2018 19:58:21 -0400 X-Google-Smtp-Source: AIpwx49HQNcM+TNE6I5KfSKl19GvZW/Q/AGQrq/W8vPrrS7jUmVsRlM4z4pRqn93qG3+UKQ/ngserA== Date: Thu, 5 Apr 2018 08:58:16 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Linus Torvalds , Andy Shevchenko , Rasmus Villemoes , "Tobin C . Harding" , Joe Perches , Andrew Morton , Michal Hocko , Sergey Senozhatsky , Steven Rostedt , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/9] vsprintf: Factor out %p[iI] handler as ip_addr_string() Message-ID: <20180404235816.GD622@jagdpanzerIV> References: <20180404085843.16050-1-pmladek@suse.com> <20180404085843.16050-6-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404085843.16050-6-pmladek@suse.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (04/04/18 10:58), Petr Mladek wrote: > > Also it is better to warn about unknown specifier instead of falling > back to the %p behavior. It will help people to understand what is > going wrong. They expect the IP address and not a pointer anyway > in this situation. > May be. If one sees a hashed value where IP address/device name/etc was meant to be then it's already a sign that something is wrong. Those WARN_ONCE that you have added make things simpler, I agree. A quick question, what happens on !CONFIG_BUG systems (where we have no_printk() WARN)? -ss