From patchwork Wed Dec 5 09:45:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 152883 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9092985ljp; Wed, 5 Dec 2018 01:46:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XL9N0xBjmJ1vMXgH63rIrIJgUKBs85ipCNY03CQfiEVCgOjp7H5XOA5KFkBRzRaB0S0kU1 X-Received: by 2002:aa7:cdda:: with SMTP id h26mr21336356edw.248.1544003166208; Wed, 05 Dec 2018 01:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544003166; cv=none; d=google.com; s=arc-20160816; b=mRVcyho8t6JW8D7MMyCd6jrQS6Yl3pCUdf8czlui6eAX3xTo04l+9J6nTM6EWyNoa+ CvkZRkwSyJRilwgWbbmQhhBonKIXbNsIMaS4+/kp4hu/IfJhnzLitxluSm65syNeX2nL 0UDeirz+3gjcYtfl9L3iIcfOWCIi3LTOQ/U6aEJH8uCGJ1WYvxnsN3l03YImuVefJfPv nAhUdrI0EoJ9tctqKG3KtaNiiwkp475FDCd7IzAkP6hW6rbPFr56UaTy9qyddhyIep1J tn3fmYCHLESzX8+osb1qeznqRdnSP2nEuFmil4ji8t0m65jVPdfhFG/vVyMvBVvqKmaj EWlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature; bh=YpZ+AsGpLEyvm0ibnw1C3NelHJR2ZWpRhoEIjQqbu1o=; b=dpGwzjV2uJkquVnWWmsr5Y63vV3z5EjNb0uJluH5YXzQ65S3xbOCc3G7tL0tP4rVa3 yvGUCFufBs/t7WzPJzlBMH7GaVbBEp4tQxsDByO9m0yasnD80lNKHZpetPao9EuEc+je Ba3vK1HqnaS75mhhL15qrmdtxADY8Jiyrt5rp3iNlnlREsJSrmpSS+Dx7MrLc5PuZPHX fVXDR17wlu8jpHGONvCZ2qgL875tBSDRWrKVVv2lsa7Sy5s0fFLRjpOpvZrVAZTbYaqA F9XQgoGnSVX1rZMmoPsC7XbKD+LXLJwBpNd/tF3TgYBSr+bHu6T9QDWMqZ5vQK6jvuEz CBTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=TdURNDYs; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id a64si3494529ede.255.2018.12.05.01.46.05; Wed, 05 Dec 2018 01:46:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=TdURNDYs; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id AD4EFC224AC; Wed, 5 Dec 2018 09:46:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 92208C21EE5; Wed, 5 Dec 2018 09:46:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C793EC21EE5; Wed, 5 Dec 2018 09:46:01 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lists.denx.de (Postfix) with ESMTPS id 436FAC21EC5 for ; Wed, 5 Dec 2018 09:46:01 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB59jwqg049885; Wed, 5 Dec 2018 03:45:58 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544003158; bh=+XmyTQk0v+wSTAPEHMUU2XimjRiaeI6v00xlnPli+o8=; h=From:To:CC:Subject:Date; b=TdURNDYsfpdWekhoLAvCkgmuRfTfjPvsOGHTidFrdeSp4zmZFWG3yvzHu10FDM5O9 AWydPh3V0BPGcHX4dOw/lCcfw4vBdfY/cKpb5jnnG9FDLPbBSJqzaI02X/hPtw6Gx4 XhDq0mPpvF+8FDKepStk5hl1KkWN4UBSSINpoveE= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB59jvkl017779 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Dec 2018 03:45:57 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 5 Dec 2018 03:45:57 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 5 Dec 2018 03:45:57 -0600 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wB59jt4a002088; Wed, 5 Dec 2018 03:45:56 -0600 From: Sekhar Nori To: Simon Glass Date: Wed, 5 Dec 2018 15:15:55 +0530 Message-ID: <20181205094555.24630-1-nsekhar@ti.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Tom Rini , U-Boot Mailing List Subject: [U-Boot] [PATCH] common: fdt_support: print hexadecimal numbers in debug X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We usually deal with hexadecimal addresses and sizes in device-tree. Its much easier if debug logs print hexadecimal values too. Signed-off-by: Sekhar Nori Reviewed-by: Simon Glass --- common/fdt_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 3440e42a257b..194bb41d1414 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1025,7 +1025,7 @@ static u64 of_bus_default_map(fdt32_t *addr, const fdt32_t *range, s = fdt_read_number(range + na + pna, ns); da = fdt_read_number(addr, na); - debug("OF: default map, cp=%llu, s=%llu, da=%llu\n", cp, s, da); + debug("OF: default map, cp=0x%llx, s=0x%llx, da=0x%llx\n", cp, s, da); if (da < cp || da >= (cp + s)) return OF_BAD_ADDR; @@ -1080,7 +1080,7 @@ static u64 of_bus_isa_map(fdt32_t *addr, const fdt32_t *range, s = fdt_read_number(range + na + pna, ns); da = fdt_read_number(addr + 1, na - 1); - debug("OF: ISA map, cp=%llu, s=%llu, da=%llu\n", cp, s, da); + debug("OF: ISA map, cp=0x%llx, s=0x%llx, da=0x%llx\n", cp, s, da); if (da < cp || da >= (cp + s)) return OF_BAD_ADDR;