From patchwork Tue Jun 11 14:12:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 166461 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2420556ilk; Tue, 11 Jun 2019 07:14:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz27VWFJxJonRqcJqJ9axG41Npw/LMC5Z7mgJaJ+0kh1Zb1NnQlYI18IGhWYbHo5rB852/O X-Received: by 2002:a65:5688:: with SMTP id v8mr20713496pgs.138.1560262467076; Tue, 11 Jun 2019 07:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560262467; cv=none; d=google.com; s=arc-20160816; b=yRWI3Y9WcIC8eaWTJN229C4HMs2ckqPuHTrpFDzr6OZ3T60F0PBi3A80pf03v8qGU3 CKmWMjuEl8Jx6eBobcPSsd0Q/k18owxuDHOGKo7Eu59xWjqES1H2pUO+V0O7cHfnOL9e QuLVSmwNn6gfo6lJJEqYiIA/KNNrWNxk5SeGzUhDthqd8Id7AWhnDZ7uF90Kan07f1R4 DBkhVY8ccX6btUmkRXFccD9/tNCqgn95MJuw8I7TU025hc716YUJ48UWt0Qbp9MObXCB 4PXHAz7+4BDPx7IOgp6sGCPzWfOQ4rAoCbA5Uf9PFb3YJ4mo1kHOUiGrb3cLKacpdCtW 8nEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=rvmS/Al4aB4EfoJad6Up1+6lH+6Efa6lntW9C/xC31o=; b=H1Yk0gFuNsjUOq+6kMl9m9KxlQ1jLhzwOaGRsI033NeCAo1n3658FnHXdZaM6t+AS0 oxM/byIpWWvBfvrI5j3lMLesvUO9SIe9A6TmvOotFhwMoqoWqMLgzKi8tQyWUbSrBg86 uGkZZ7PR8fvujr2Z0ympjgFCrgpwaq4EGwTRSplW1nmbrhBoU4wo4PjOuggjiVDxKBO4 wY6A42zN57w04uYbD57rEZpkrAYLADSUxGmC9AhUr29va5wFP8VCz3+wTH0mHATliHhf 98kAJFMxgxKC+iYbG8VYTk3DaYZompeKqlpB5mrG1Orcr52f1dXdIxx3IYgSRJB7n/lC 7QNg== 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 f32si2572436pje.70.2019.06.11.07.14.26; Tue, 11 Jun 2019 07:14:27 -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 S2403762AbfFKOOW (ORCPT + 30 others); Tue, 11 Jun 2019 10:14:22 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48806 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390181AbfFKOOU (ORCPT ); Tue, 11 Jun 2019 10:14:20 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 648B6F9D4FA004DE7CD0; Tue, 11 Jun 2019 22:14:17 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Tue, 11 Jun 2019 22:14:07 +0800 From: John Garry To: , , CC: , , , , , , , , , John Garry Subject: [PATCH v4 3/3] lib: logic_pio: Fix up a print Date: Tue, 11 Jun 2019 22:12:54 +0800 Message-ID: <1560262374-67875-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1560262374-67875-1-git-send-email-john.garry@huawei.com> References: <1560262374-67875-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the print in logic_pio_trans_cpuaddr(), don't cast the value to unsigned long long, and just print the resource_size_t type directly. Signed-off-by: John Garry --- lib/logic_pio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 47d24f428908..030708ce7bb6 100644 --- a/lib/logic_pio.c +++ b/lib/logic_pio.c @@ -186,8 +186,7 @@ unsigned long logic_pio_trans_cpuaddr(resource_size_t addr) if (in_range(addr, range->hw_start, range->size)) return addr - range->hw_start + range->io_start; } - pr_err("addr %llx not registered in io_range_list\n", - (unsigned long long) addr); + pr_err("addr %pa not registered in io_range_list\n", &addr); return ~0UL; }