Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3497570ybi; Tue, 18 Jun 2019 01:37:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJREMJMNutfpv+4kLowUbriLyq0EN+PxxoS3XVKEki9o/aZLT1MF7UYjM9a/MI9Bgehf30 X-Received: by 2002:aa7:8294:: with SMTP id s20mr109221394pfm.75.1560847029773; Tue, 18 Jun 2019 01:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560847029; cv=none; d=google.com; s=arc-20160816; b=Aj27pVhBzPJnakLmZ4hCaWySSb5PwY7bLD7eS6BxtX0VXlZ0Ufzr6dzZXHTDU9GQhQ 9Bz2N9pvIWteJ8NrVH1LelEHmso8pRq4fTTNp0vhMS0y7ubc0k4cXepTRNZRq9b7jFgN 5cH9+ypyYiGfw69qEaVTiXCGEdy6TWDJ1HLrkGq2c/vsMW4KniiP4mUGCUqwhdsCtk1S 0yQ0nTsZsG7hLRAZ6/aBoKAXafpCn33rvp18HOCKoW/ClLq9pbg5PpGf7TscBOUnFhyi ilLq9Iz7lrYMa47Lg70DdHOG2kU1Tf191zlFtj7xiK2B8+wNKuhxuK+bzpixEeXjxjdz WuAA== 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:from:references:cc:to:subject; bh=q0FuzX33CAPu9gE5jQ0HrRSQcKw5G4Mt+Td6/ySd31s=; b=crMw5aV0tr25e7czMlabEGBr6tnofmUtBAj/ujvIbDJ7GWSnRmZNZG7BiG3dCBJc/s wnmzxYuO7ZEQwZCtr3WCLMtCYCCWW1sRzlWRABzA80p7On0fJnHps7Glz5iH+NzIdL7G n23c3IRuwXamXzcWbHGYQoaA7E80xwtNk5oE+uQVe5MPuxUT7W8vfdKxMxW4fxIB1AXc mrYin80ZHUvVkJssmTWdA3xksoGqvuGqU/NX6Qsc5TOu39gFbKGaioB2sj0XsBTaPnEu NbhAX0kn3X56Zp8UsmlcpBNd6MBJ9++DMwKQ5syXaE0HV2+pMLzGqP9cqK3T6OGG3k6r B4Xw== 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 f12si12398073plo.100.2019.06.18.01.36.51; Tue, 18 Jun 2019 01:37:09 -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 S1729142AbfFRIgM (ORCPT + 99 others); Tue, 18 Jun 2019 04:36:12 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:18635 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfFRIgL (ORCPT ); Tue, 18 Jun 2019 04:36:11 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 93B4A53BE9FF0D970C0F; Tue, 18 Jun 2019 16:36:02 +0800 (CST) Received: from [127.0.0.1] (10.133.217.137) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Tue, 18 Jun 2019 16:35:55 +0800 Subject: Re: [PATCH] irqchip/mbigen: stop printing kernel addresses To: Marc Zyngier CC: Thomas Gleixner , Jason Cooper , , References: <20190618032202.11087-1-wangkefeng.wang@huawei.com> <86h88npc47.wl-marc.zyngier@arm.com> From: Kefeng Wang Message-ID: Date: Tue, 18 Jun 2019 16:35:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <86h88npc47.wl-marc.zyngier@arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.217.137] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/18 15:48, Marc Zyngier wrote: > 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. It's better to print res to show the physical layout, and add missing "\n", will resend v2. Thanks. > > Just let me know what you prefer. > > Thanks, > > M. > >> return err; >> } >> >> -- >> 2.20.1 >> >