Received: by 10.223.176.5 with SMTP id f5csp410934wra; Fri, 9 Feb 2018 00:52:56 -0800 (PST) X-Google-Smtp-Source: AH8x227pGfDBnHsKOc/uUNEB3uKVRc8Mn3jQCN6C2GeD/Go2lDucXMVRVUQ+Ec0kjsNcK7rhO209 X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr1906133plf.48.1518166376200; Fri, 09 Feb 2018 00:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518166376; cv=none; d=google.com; s=arc-20160816; b=GFd5ZmFu+ZSkqJnh5xhhxtppNA7vQ02ZyZpSoacAjEqPAj3oqLANKaAAJyJdEB2pCV nPzHNYItRw4GGUlyJUr+gtBKHtPmKQ2G3rKAv5hsjMJBzk3iT4ZkaOci9XbHa6njknD4 RJWvOfxviLu7c3KZ/bjkf9HTigCt12HxhoTH1gCqhKOvZB0nADEhKfhjTg9Sary315x5 OWuB5FdvFMQYOZozTuWylnRJ6+z+G4R6doajqI9KB6Y5K0vTNLhaDt1y9B4g85w18Ws2 bOdyDICxX6XJN/NsGAdGQzt1gj7gA9IGhB9YmfmkTZ2y3KS2luYwp+HHx9YaVXjwzgZB TX4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=sKgBvbwTXmH0iar1cCWsExBcXVnRTiYBqaR+fkRh5PU=; b=V6DvWghj4SzKGcZfWreeI2sMGfyw4pTRN4qj8RQRhsYBPzWes8RR9+ArMJ/C6jzamK LfRA0NGniVzC3qolPrYhCEcQGguZkvPi4AANYARHxLpfwwHLWhs7XTPRYjnPxO5g5oom 8DLfZhFx8MuvwFkJRIMB+k5pAQxXnKqR7Ik2RCn0EweLsHYvoo2A3DpzAeF+vegGZSWx X54nh6FHoSXLhrKgvvS10JwB9qvZ5/2fF6NuxsNaRRfJZc2mv85arjaIyCc/3+YiGF+V j4qWCA7vFldJv4DNWHULkpFl5RFWJOtlIdfRFkPVvDkzw0LXOwP9iIuqawGm1Cmb24GR e3qg== 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 y5si1399937pfg.267.2018.02.09.00.52.39; Fri, 09 Feb 2018 00:52:56 -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; 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 S1751313AbeBIIvi (ORCPT + 99 others); Fri, 9 Feb 2018 03:51:38 -0500 Received: from foss.arm.com ([217.140.101.70]:44052 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbeBIIvg (ORCPT ); Fri, 9 Feb 2018 03:51:36 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2894A1435; Fri, 9 Feb 2018 00:51:36 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 526A43F53D; Fri, 9 Feb 2018 00:51:34 -0800 (PST) Subject: Re: [PATCH] irqchip: Use %px to print pointer value To: Jaedon Shin , Thomas Gleixner , Jason Cooper , Florian Fainelli Cc: Kevin Cernekee , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180209021031.20631-1-jaedon.shin@gmail.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Fri, 9 Feb 2018 08:51:33 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180209021031.20631-1-jaedon.shin@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/18 02:10, Jaedon Shin wrote: > Since commit ad67b74d2469 ("printk: hash addresses printed with %p") > pointers printed with %p are hashed. Use %px instead of %p to print > pointer value. > > Signed-off-by: Jaedon Shin > --- > drivers/irqchip/irq-bcm7038-l1.c | 2 +- > drivers/irqchip/irq-bcm7120-l2.c | 2 +- > drivers/irqchip/irq-brcmstb-l2.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c > index 55cfb986225b..f604c1d89b3b 100644 > --- a/drivers/irqchip/irq-bcm7038-l1.c > +++ b/drivers/irqchip/irq-bcm7038-l1.c > @@ -339,7 +339,7 @@ int __init bcm7038_l1_of_init(struct device_node *dn, > goto out_unmap; > } > > - pr_info("registered BCM7038 L1 intc (mem: 0x%p, IRQs: %d)\n", > + pr_info("registered BCM7038 L1 intc (mem: 0x%px, IRQs: %d)\n", > intc->cpus[0]->map_base, IRQS_PER_WORD * intc->n_words); > > return 0; > diff --git a/drivers/irqchip/irq-bcm7120-l2.c b/drivers/irqchip/irq-bcm7120-l2.c > index 983640eba418..1cc4dd1d584a 100644 > --- a/drivers/irqchip/irq-bcm7120-l2.c > +++ b/drivers/irqchip/irq-bcm7120-l2.c > @@ -318,7 +318,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, > } > } > > - pr_info("registered %s intc (mem: 0x%p, parent IRQ(s): %d)\n", > + pr_info("registered %s intc (mem: 0x%px, parent IRQ(s): %d)\n", > intc_name, data->map_base[0], data->num_parent_irqs); > > return 0; > diff --git a/drivers/irqchip/irq-brcmstb-l2.c b/drivers/irqchip/irq-brcmstb-l2.c > index 691d20eb0bec..6760edeeb666 100644 > --- a/drivers/irqchip/irq-brcmstb-l2.c > +++ b/drivers/irqchip/irq-brcmstb-l2.c > @@ -262,7 +262,7 @@ static int __init brcmstb_l2_intc_of_init(struct device_node *np, > ct->chip.irq_set_wake = irq_gc_set_wake; > } > > - pr_info("registered L2 intc (mem: 0x%p, parent irq: %d)\n", > + pr_info("registered L2 intc (mem: 0x%px, parent irq: %d)\n", > base, parent_irq); > > return 0; > Why is that something useful to do? This just tells you where the device is mapped in the VA space, and I doubt that's a useful information, hashed pointers or not. Am I missing something obvious? Thanks, M. -- Jazz is not dead. It just smells funny...