From patchwork Thu Oct 13 22:06:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: loic.minier@linaro.org X-Patchwork-Id: 4675 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DF7A823F59 for ; Fri, 14 Oct 2011 09:58:54 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id AE7B7A18781 for ; Fri, 14 Oct 2011 09:58:54 +0000 (UTC) Received: by mail-gx0-f180.google.com with SMTP id i2so1365420ggn.11 for ; Fri, 14 Oct 2011 02:58:54 -0700 (PDT) Received: by 10.223.17.3 with SMTP id q3mr3109577faa.28.1318586334098; Fri, 14 Oct 2011 02:58:54 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs8245laf; Fri, 14 Oct 2011 02:58:53 -0700 (PDT) Received: by 10.227.155.84 with SMTP id r20mr2620801wbw.107.1318586333443; Fri, 14 Oct 2011 02:58:53 -0700 (PDT) Received: from pig2.dooz.org (pig2.dooz.org. [88.191.118.219]) by mx.google.com with ESMTPS id ff8si5553363wbb.44.2011.10.14.02.58.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Oct 2011 02:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of lool@dooz.org designates 88.191.118.219 as permitted sender) client-ip=88.191.118.219; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lool@dooz.org designates 88.191.118.219 as permitted sender) smtp.mail=lool@dooz.org Received: from bee.dooz.org (unknown [IPv6:2a01:e35:8a6e:5e80:224:7eff:fe14:65c3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bee.dooz.org", Issuer "dooz.org CA" (verified OK)) by pig2.dooz.org (Postfix) with ESMTPS id 0CE96C0867 for ; Fri, 14 Oct 2011 11:58:53 +0200 (CEST) Received: by bee.dooz.org (Postfix, from userid 1000) id 4BAB52EA3; Fri, 14 Oct 2011 11:58:51 +0200 (CEST) Resent-From: =?iso-8859-1?Q?Lo=EFc?= Minier Resent-Date: Fri, 14 Oct 2011 11:58:51 +0200 Resent-Message-ID: <20111014095851.GG27642@bee.dooz.org> Resent-To: patches@linaro.org X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on pig.dooz.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=3.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=disabled version=3.1.4 X-Original-To: lool@dooz.org Received: from mail-wy0-f179.google.com (mail-wy0-f179.google.com [74.125.82.179]) by pig.dooz.org (Postfix) with ESMTP id 7139B4C0AF for ; Fri, 14 Oct 2011 00:06:52 +0200 (CEST) Received: by mail-wy0-f179.google.com with SMTP id 36so3087291wyg.24 for ; Thu, 13 Oct 2011 15:06:52 -0700 (PDT) Received: by 10.227.137.210 with SMTP id x18mr1856015wbt.57.1318543612287; Thu, 13 Oct 2011 15:06:52 -0700 (PDT) X-Forwarded-To: lool@dooz.org X-X-Forwarded-For: loic.minier@linaro.org lool@dooz.org Received: by 10.180.105.167 with SMTP id gn7cs168670wib; Thu, 13 Oct 2011 15:06:52 -0700 (PDT) Received: by 10.204.140.202 with SMTP id j10mr4415886bku.66.1318543611242; Thu, 13 Oct 2011 15:06:51 -0700 (PDT) Received: from pig2.dooz.org (pig2.dooz.org. [88.191.118.219]) by mx.google.com with ESMTPS id ab15si3722458bkc.98.2011.10.13.15.06.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 15:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of lool@bee.dooz.org designates 88.191.118.219 as permitted sender) client-ip=88.191.118.219; Received: from bee.dooz.org (unknown [IPv6:2a01:e35:8a6e:5e80:224:7eff:fe14:65c3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bee.dooz.org", Issuer "dooz.org CA" (verified OK)) by pig2.dooz.org (Postfix) with ESMTPS id 9BBC7C0764; Fri, 14 Oct 2011 00:06:50 +0200 (CEST) Received: by bee.dooz.org (Postfix, from userid 1000) id A87ED39CE; Fri, 14 Oct 2011 00:06:49 +0200 (CEST) From: =?UTF-8?q?Lo=C3=AFc=20Minier?= To: barebox@lists.infradead.org Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= Subject: [PATCH 4/5] Use %p in format for pointers Date: Fri, 14 Oct 2011 00:06:40 +0200 Message-Id: <1318543601-20819-5-git-send-email-loic.minier@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1318543601-20819-1-git-send-email-loic.minier@linaro.org> References: <1318543601-20819-1-git-send-email-loic.minier@linaro.org> MIME-Version: 1.0 res->start and res->size are resource_type_t which is a phys_addr_t which itself could someday be a 64-bits pointer (for instance when building sandbox on a 64-bits host). Instead of hardcoding %08x as a format for pointers, use the %p format. Signed-off-by: Loïc Minier --- drivers/base/driver.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 0b80103..515ff8d 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -349,8 +349,8 @@ static int do_devinfo(struct command *cmdtp, int argc, char *argv[]) printf("num : %d\n", i); if (res->name) printf("name : %s\n", res->name); - printf("start : 0x%08x\nsize : 0x%08x\n", - res->start, res->size); + printf("start : 0x%p\nsize : 0x%p\n", + (void *)res->start, (void *)res->size); } printf("driver: %s\n\n", dev->driver ?