Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3457260ybi; Tue, 18 Jun 2019 00:49:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIcH6qIZXZZvRVJva2KAW7IwJHTy/QIpRzrE4K6/tCgR/J7nzWD6w+1hO3GLRKRQbPfFEY X-Received: by 2002:a65:448b:: with SMTP id l11mr1408578pgq.74.1560844172558; Tue, 18 Jun 2019 00:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560844172; cv=none; d=google.com; s=arc-20160816; b=sTDXGsJmBto3wTFLJKhHGCfqjEBNVLysgg9Y3t+d1yJaxXnkb4Px6JU6TmlfqZ+1Zv seTGgZuBxwxQEwsDNCtr1sog0FvfRL2DMNYEWRtvSb/LEfNQimD17vB33qIEyscgeY0n 9ngCudcuHiR0mqRp++GqNwXYdWftQYz8uPhjGsZWLaWikjovwhTLyOrHmFryimQd/Y8/ P9Fw3kD+TUjS4ZoQKlKHqyrE14x1iea2YbtMTDvBO/DiZXS/sXiPJRF8cLr2t4K0E+3t 1Ze0rSWIUYPI50jAZ+W5keY9rZvTMWq9D4rC9Wxzd7dIX8DiIVJvVQilKnOWUmzJUkg7 oc1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=8rywHkhdYWPKNPWoFSLIMkthX04bTmWCeKvhOKanR+M=; b=cGFRh8RtuzIeRR6RnD5yI03BXqkkAgM2g6YVvpmQgOFR6qmPGtg3CowVmtMQGTDe7e cirS7bo0UPHtG+mZAslMucT1MuPENk7vU+x2tLgiTOon6N5oN4PRD80p40N/KViG4opB N/mEjmIwCebjpy+HNz8RMOpTfBryEBCocX4GZPn//+BUg0k45I+56NV3HRFiVg3yr3rq ibu3S/x73EO9VFkqDfQ/W7n/3cVtJ/pGJvfnVCPCPOyEpgsC1TEP9NgiWkCTVN+Ufo6i YrPhtbPVVTwYQms33YlKOTPugYo/ojz5zBSF4b1wSX69JyU+y1zuBzRotbxp+Fmbw6YZ b4MA== 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 t20si6446891pgv.147.2019.06.18.00.49.17; Tue, 18 Jun 2019 00:49:32 -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; 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 S1728869AbfFRHtO (ORCPT + 99 others); Tue, 18 Jun 2019 03:49:14 -0400 Received: from foss.arm.com ([217.140.110.172]:55246 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfFRHtN (ORCPT ); Tue, 18 Jun 2019 03:49:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E3FD328; Tue, 18 Jun 2019 00:49:12 -0700 (PDT) Received: from big-swifty.misterjones.org (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 86EF23F246; Tue, 18 Jun 2019 00:49:11 -0700 (PDT) Date: Tue, 18 Jun 2019 08:48:56 +0100 Message-ID: <86h88npc47.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Kefeng Wang Cc: Thomas Gleixner , Jason Cooper , , Subject: Re: [PATCH] irqchip/mbigen: stop printing kernel addresses In-Reply-To: <20190618032202.11087-1-wangkefeng.wang@huawei.com> References: <20190618032202.11087-1-wangkefeng.wang@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kefeng, On Tue, 18 Jun 2019 04:22:02 +0100, Kefeng Wang wrote: > > After commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), > it will print "____ptrval____" instead of actual addresses when mbigen > create domain fails, > > Hisilicon MBIGEN-V2 HISI0152:00: Failed to create mbi-gen@(____ptrval____) irqdomain > Hisilicon MBIGEN-V2: probe of HISI0152:00 failed with error -12 > > Instead of changing the print to "%px", and leaking kernel addresses, > just remove the print completely. > > Signed-off-by: Kefeng Wang > --- > drivers/irqchip/irq-mbigen.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c > index 98b6e1d4b1a6..d0cf596c801b 100644 > --- a/drivers/irqchip/irq-mbigen.c > +++ b/drivers/irqchip/irq-mbigen.c > @@ -355,8 +355,7 @@ static int mbigen_device_probe(struct platform_device *pdev) > err = -EINVAL; > > if (err) { > - dev_err(&pdev->dev, "Failed to create mbi-gen@%p irqdomain", > - mgn_chip->base); > + dev_err(&pdev->dev, "Failed to create mbi-gen irqdomain"); The alternative would be to print res as a resource, which would still help identifying the offending device by printing its physical layout, and still not reveal much. Just let me know what you prefer. Thanks, M. > return err; > } > > -- > 2.20.1 > -- Jazz is not dead, it just smells funny.