From patchwork Wed Mar 20 18:14:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 160697 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp591723jan; Wed, 20 Mar 2019 11:14:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVyH87WfJdJv6E3p2v1nwdKC4lstroW7/8SfpftHzB6GKtZfC78WjQwWbfdiWkWVAsPozR X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr9511722plo.235.1553105668539; Wed, 20 Mar 2019 11:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553105668; cv=none; d=google.com; s=arc-20160816; b=S/C0pZMhhvKfSGk1LF8nxps1af+V1yg2E6NVrBXzzR5diosCJZENq1MfK2FI/5nWvw v/GnuH4i3XBaDA1TBvuIMPQYwxy4p+IN6Mx0gCTzYG1I0x1mXZyrJpfwqrzDI+zyn0xH pG6pBR0cbNP5rBBHD2NaB1+ME1liXyf8ayF8Qf8Pho4aKRmYf1eFSMMwSlNKSHwo1cjF TtOwY4osz3zVca9sJWRpdlNW3kxtoY07TRiyhHuEEJ1vA+81NUkm+ioGuafGrjfZPcIT HF6jVLxn3djgO8yVymapEH28NK2nLUArS85lZyrLr1Q4ahscYxSL4Sw6WoycHrIy6ZpN U/3w== 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=9VHMD4Qe14mbHXpDj7OHq710JGUrt/hcAf54t126njo=; b=TJQoSX8y5erru1pEqWsbqx9sGfu6rcW36Z38xCj8SvkvwjzqpOsv5Bk81wwV/NenaI WHpUUhSlJbUBy6du/pxDcCLZhzb5sMk1At4tohOh0d5DplQ4ICReNSB3A5clzZFNBETV Vfl/3XKy4qTpb2LE+luw6gtlnAeT2d4V2r/iuuX/0SGMAQyAzEcE1PThmcXSznxKwoYG 7QDEMDVigjt9H70i+8UEV5K2Sr8E1s/k65A2Y0XGJaEkklbEezTLvCMe0eHcpUe0IyEV jdvZWOZHv1Aw+/lcre1Pu2uHFRqK65OdnjNasl8wr3udI1tqxXPpMCJhc1zgqKjQjYnH Tn2g== 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 a21si2111497pgw.395.2019.03.20.11.14.28; Wed, 20 Mar 2019 11:14:28 -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 S1727399AbfCTSO0 (ORCPT + 31 others); Wed, 20 Mar 2019 14:14:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5724 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727103AbfCTSOZ (ORCPT ); Wed, 20 Mar 2019 14:14:25 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C98EF94934574973E31D; Thu, 21 Mar 2019 02:14:22 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Thu, 21 Mar 2019 02:14:14 +0800 From: John Garry To: , , , , CC: , , , , , , , "John Garry" Subject: [PATCH v2 3/3] lib: logic_pio: Make some prints explicitly hex Date: Thu, 21 Mar 2019 02:14:10 +0800 Message-ID: <1553105650-28012-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1553105650-28012-1-git-send-email-john.garry@huawei.com> References: <1553105650-28012-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 Some prints in the code are for a hex number, but don't prefix "0x". Add the prefix, as is the norm. Signed-off-by: John Garry --- lib/logic_pio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/lib/logic_pio.c b/lib/logic_pio.c index 026a4fb4b944..6b37cc79a0bf 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,7 +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", + pr_err("addr 0x%llx not registered in io_range_list\n", (unsigned long long) addr); return ~0UL; }