From patchwork Thu Apr 4 16:00:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 161802 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1773481jan; Thu, 4 Apr 2019 09:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDL9EFwE4drVOvjpUc0NX7iupnxt/CQXz98MJI9Yz2Zy0u10jHIFPdgewe8grpEpcAO34x X-Received: by 2002:a17:902:f81:: with SMTP id 1mr7327658plz.216.1554393634805; Thu, 04 Apr 2019 09:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554393634; cv=none; d=google.com; s=arc-20160816; b=LALmSslh67E4UQ+GnqyKT1l/MbMDOotle0OYmwxV03qByehbpaPcTJsEqos6yMMIFN LGevznR7fMB+PgYEh8JeCyBpJnnOTVVPTFSipT+Nv2yzEy/WsVE7CRL1ZHwoBFfGF9g5 t2gUeMp8bPiO8U1HSi0ejIqqhR5mkudHOiVYB+i9xUk8nYflNRf8PcZcIny6KQFLhlD6 wKcFWVR/H4c0E0J+kerINksb0b6FwRQHTC8uOJ4xD9EEoOUmTU53PP87k/AUAPVudqrf lfFQm/STXjgI6tnXPXlNqBkz18zWx/VrgkCH760dmetcOVUNohJ5cuNqzLvZzZ5giUoh 0/fg== 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=5fGT0+gAJNfY89J7/dg1J3SdjmkTszspo7wdUdfZ0cw=; b=bmDvdhLyQhlG5TRmQjTK/eIUwOuN7ZiFoNvMWwCPkhqJjG8t0pcoRJ5hU1OWN3axND ReGkrDt5mV4Nn/ZFtVbQdtHzRJkwdSCsrehclSWNyA6B1IHDIeRu/Oq9s5JLhZnmdTst YD6VY1HwaXwUIzFkQPwiRwlQChysFFcXQQzkP9NBmmnYUfheDkk3u7Dw6EMni2aNWRb5 quhpAs2yEa7kw9mSz46Vfq6euqjcv6DOQrGQcYRV0p34+Aq3Ihllv/Q0HlOjNJqPAzw2 9x6Aha/LiG9jAYNwn8KVUAbSB+v1WK2hHNgM7U9hVLnDqSHxdZBJiCkii1WO+nSF3bIg Mg4g== 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 i18si16348959pfa.205.2019.04.04.09.00.34; Thu, 04 Apr 2019 09:00:34 -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 S1729240AbfDDQAd (ORCPT + 31 others); Thu, 4 Apr 2019 12:00:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5668 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728159AbfDDQAb (ORCPT ); Thu, 4 Apr 2019 12:00:31 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DBA45B9441FD9080D1A1; Fri, 5 Apr 2019 00:00:28 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Fri, 5 Apr 2019 00:00:18 +0800 From: John Garry To: , , , CC: , , , , , , , , , , John Garry Subject: [PATCH v3 4/4] lib: logic_pio: Fix up some prints Date: Fri, 5 Apr 2019 00:00:02 +0800 Message-ID: <1554393602-152448-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1554393602-152448-1-git-send-email-john.garry@huawei.com> References: <1554393602-152448-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 A print in find_io_range() is for a hex number, but doesn't prefix "0x". Add the prefix, as is the norm. In the case of 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 3d8d986e9dcb..475d469c1a16 100644 --- a/lib/logic_pio.c +++ b/lib/logic_pio.c @@ -126,7 +126,7 @@ static struct logic_pio_hwaddr *find_io_range(unsigned long pio) if (in_range(pio, range->io_start, range->size)) return range; } - pr_err("PIO entry token %lx invalid\n", pio); + pr_err("PIO entry token 0x%lx invalid\n", pio); return NULL; } @@ -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; }