Received: by 10.223.176.5 with SMTP id f5csp409670wra; Fri, 9 Feb 2018 00:51:18 -0800 (PST) X-Google-Smtp-Source: AH8x227kk688EEdi7AYSIw0C0CV+iUGh727bFccjTDRsYEVmZ3R/E/W6GbjL2FFvMwOoFARDR0PI X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr1895794plf.124.1518166278066; Fri, 09 Feb 2018 00:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518166278; cv=none; d=google.com; s=arc-20160816; b=XUbfCMOvaLFy4ywomL+Qc1DhLhmlupMBV6EKHsuDO8yJXG5WGJtmlOTZ6UoO3QdN84 vyCCzGeEvAS9Np0F1prrwvVanUx4iljOtlPY0rOYR2kV4RDtkqyn8sTkyxFy4W1GuZCn umwxg5zpFCz/gEF9s0grnKcAxC0eA2YiGUaTP8PqM65xBvxD6I4oMLSNZg9i5dR27mZz FmhLsJTaDb3Wbr/9tjxFCBYRxxLEe+jZOmip/im4xSLrtI5y3MLWcGIceCcKoq2aKvZs JcLZkaT9EqHILfAUxPIrgL2CC8f7dKXG4JRugmaiCdJNMVOetAKG+SoppK3faFn0Iec7 ixTA== 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=AZxRHPIgvid5B4BOGdOPys1/VynIs07ANWeOJbzSUB0=; b=c3D6Dac7deylR3tuzgqXDevxjKCyoLyHWE5uwVMNRwVdp7pnUt/Qa9o7IEFzf2Eq1n DiDzFz/XLrwO1ZzZvA1WQ0RH3ZLYnMgJZkxYnj1zLYzun/kxgNjBJPJm1Co3ugK4swEI CjMsr4SSoCnHDUJnYaOc2TabJ/SyYkFdKlpILQYH39zHM2yTqC3YpBmsF9VtRqu7svhP ak+dNXfg/Qt437q+aKgm46BH64hlL6fA/F6zq3fANHm7xX995bgIzBaLnlm+J3DeR6wF mjfvvqCq3zktvk8jtcTRfkcePIVqUgylWVhtdwrpkmlxJgyq9uJBf51Um/rfSRYk/Pka iSSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sqRbqBpr; 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 f123si1117070pgc.437.2018.02.09.00.51.00; Fri, 09 Feb 2018 00:51:18 -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=fail header.i=@gmail.com header.s=20161025 header.b=sqRbqBpr; 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 S1751070AbeBIIsv (ORCPT + 99 others); Fri, 9 Feb 2018 03:48:51 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36576 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbeBIIsu (ORCPT ); Fri, 9 Feb 2018 03:48:50 -0500 Received: by mail-qk0-f196.google.com with SMTP id 15so9081725qkl.3 for ; Fri, 09 Feb 2018 00:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AZxRHPIgvid5B4BOGdOPys1/VynIs07ANWeOJbzSUB0=; b=sqRbqBprQ46EvOn8wkN1vA2FHQZOLxFHpg/49eA4VxFCuqeHKQiCZ+t1PWEeJHhvbC GobYxsDKn1xi8tgPuhxF8a6cTMgd5DNNMTXcZ5JaRlShrI/qhDbjslEbD1Xpchg0od83 e4qKE8mF7vT7fCKrW8eiOBqcIWI8Q6kZEt14AWlHlAUjwy2bFkUHORIZPRiaXLcTzb0C lVY7azdNx+jP3xVBjkowEu3MZv9I2oIOUJcnGA9iV6CyiqsP76tzdq7uoTZsr5FIbyDb otSiJiqKvGqBXXI1YNBgYdiFcC6einEET6s7OdFKM9EN2lnYyDFHNyQzoHNT3D97V9kB nmPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=AZxRHPIgvid5B4BOGdOPys1/VynIs07ANWeOJbzSUB0=; b=Ko/tDf6OdyUl9r4sDvr/HoeycZCoLFUgskKSzcf54LrCyGE1cGYvzqLSsGgc/729rj p1c44WpIU6vtdvD6wiUM5u7jd2/VFeKfHOZ1cZnOMUn0kB4fek8DLCOmMB30P6GJykKl TJX1EDjYXFZYQbW+OvRxUjllCZjMQERc+UZFMdLj1LdO23IGj+pq7Q60zGJgXyItD6ZF cGhGZK1iTEL3tKOKGpOHBZxdVjqRK3eKO59Jzc0nLRceZvyWROzrMjcXqLIAxMygvQIN dkl+V/SHaDnzDRv+hwN4JU5SDvdb5tYFhV+TtguUTUnvLlby3p0BMS0GRMTdABo/irNG sTQg== X-Gm-Message-State: APf1xPCVV3N+pNC2oSy8yaMFz3P2iP9W0U0u7NGHV4TffaPZMKASSZO/ aF3paqjJPcO3/s0k2NMXx9fHuJb+yVJZlTGLnp4= X-Received: by 10.55.247.26 with SMTP id q26mr2776493qkj.234.1518166129608; Fri, 09 Feb 2018 00:48:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.39.197 with HTTP; Fri, 9 Feb 2018 00:48:48 -0800 (PST) In-Reply-To: <20180209021031.20631-1-jaedon.shin@gmail.com> References: <20180209021031.20631-1-jaedon.shin@gmail.com> From: Geert Uytterhoeven Date: Fri, 9 Feb 2018 09:48:48 +0100 X-Google-Sender-Auth: RoxBSjWB4i7i220GSR2RhDFTock Message-ID: Subject: Re: [PATCH] irqchip: Use %px to print pointer value To: Jaedon Shin Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Florian Fainelli , Kevin Cernekee , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com, Linux MIPS Mailing List , Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org 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 Hi Jaedon, On Fri, Feb 9, 2018 at 3:10 AM, 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 Thanks for your patch! > --- 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); I believe the printing of this value should just be removed. Printing virtual addresses of mapped registers is usually not helpful, except for an attacker. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds