From patchwork Thu Jan 10 14:58:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 211045 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A964A2C0331 for ; Fri, 11 Jan 2013 02:01:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C0924A131; Thu, 10 Jan 2013 16:00:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TbbbewemqSWQ; Thu, 10 Jan 2013 16:00:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32C7C4A159; Thu, 10 Jan 2013 15:59:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E8394A0EF for ; Thu, 10 Jan 2013 15:59:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OMoV9nbfeUYD for ; Thu, 10 Jan 2013 15:59:16 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-vc0-f201.google.com (mail-vc0-f201.google.com [209.85.220.201]) by theia.denx.de (Postfix) with ESMTPS id AF1804A14E for ; Thu, 10 Jan 2013 15:58:58 +0100 (CET) Received: by mail-vc0-f201.google.com with SMTP id p1so68674vcq.4 for ; Thu, 10 Jan 2013 06:58:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=qjzhRv93J8xFJxdx37dLW7JZtpkZFZk0Ype8qyVxKMg=; b=M548okeXPGOvfDgywwNReLBhnFmw3hvr+u2KioNwNNIH1zf1iaV93bONe2tbAtBiZ5 7uL665tH0EeeL0qbQ897jMzl/HCS+HyCJfFNVJG3CTjHg1teG/bQkZ3gGov5ikIdUjIH nf90P+Tro0WKS8blnsfC4YY5j+onNjWgZWpyp3YAHzLpuxrjJDQ243GNsXAUazSabYE3 HTNADwOuAy7FsoRzQYh/aBxn9Lf3e4W2Gl11UddFmCun7Pz/TFx0FdCYt+MvFFYvZPCY kQTLoulaPHwhgouJ9Jl0guMoNhhp2rz/dNeFc2Xrols2g61dDl/RkKyhQerny38yMl6g D+wA== X-Received: by 10.236.115.161 with SMTP id e21mr23410656yhh.46.1357829936764; Thu, 10 Jan 2013 06:58:56 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id u20si43836anj.3.2013.01.10.06.58.56 (version=TLSv1 cipher=AES128-SHA bits=128/128); Thu, 10 Jan 2013 06:58:56 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 9B31910004A; Thu, 10 Jan 2013 06:58:56 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 5597416088F; Thu, 10 Jan 2013 06:58:56 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 10 Jan 2013 06:58:22 -0800 Message-Id: <1357829905-6579-20-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1357829905-6579-1-git-send-email-sjg@chromium.org> References: <1357829905-6579-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQkpXRsncvx6U9Ex6C6EXQ+gOk8Ef1YhJSnp5YVeIJBsC0gEYwac/dwpxvbO5DUezSAZ9xIDr53syHdgv5rStJAsrNSzKobd2lH3AuiFk+Fimp2brRMM0+gB2e7YBahymMWyU9SRPiTRitBdZwQut8m1l9poCK7VzFzoQK46+fKXGpE5ut6/KzqvPvr8DLKx0QfezHFr Cc: Joe Hershberger , Tom Rini , Vadim Bendebury Subject: [U-Boot] [RFC PATCH 19/22] sandbox: image: Adjust FIT image printing to work with sandbox X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use map_sysmem() to convert from address to pointer, so that sandbox can print FIT information without crashing. Signed-off-by: Simon Glass --- common/image-fit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index ef21112..9f3ece2 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -373,7 +373,7 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) if (ret) printf("unavailable\n"); else - printf("0x%08lx\n", (ulong)data); + printf("0x%08lx\n", (ulong)map_to_sysmem((char *)data)); #endif printf("%s Data Size: ", p);