From patchwork Sun Apr 28 02:17:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 240213 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 399212C00AA for ; Sun, 28 Apr 2013 12:18:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C2584A17D; Sun, 28 Apr 2013 04:18:42 +0200 (CEST) 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 u0frPb+xJBgS; Sun, 28 Apr 2013 04:18:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 75B424A181; Sun, 28 Apr 2013 04:18:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 15AEC4A17D for ; Sun, 28 Apr 2013 04:18:27 +0200 (CEST) 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 PID9g6EQzVwW for ; Sun, 28 Apr 2013 04:18:25 +0200 (CEST) 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-gh0-f201.google.com (mail-gh0-f201.google.com [209.85.160.201]) by theia.denx.de (Postfix) with ESMTPS id 54BF84A17F for ; Sun, 28 Apr 2013 04:18:23 +0200 (CEST) Received: by mail-gh0-f201.google.com with SMTP id r13so239923ghr.0 for ; Sat, 27 Apr 2013 19:18:21 -0700 (PDT) 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=H+ckXScRqkEEyogvXBI6YQRRXFfNI2/13k7H7R2LrtI=; b=VjekPwyxCppVElvzAP4rXal3eO8NMvaHLkfQNJWVZP41rK6zh5IBFunHB3I3VsxkCH UsBA03DX6fFH5f0CIuJ9l7LZxe9zpJou+WZMGzMY9aLZcnUWwZ+SpZP9VshejjPiVJeh QOWjPps64n7DNTVxvJ//DtDw4Ouja2AnH4wVL+R+cxTv4HtjR7AOeLYUlcU9l1APuswv sBCFbSnQPSTdf9ryZ0wvTRD4QjOW6SsX8krIIB2Umt9P3SJbMCdv76xrOjiGB5Mpkczw Hwn58h43h0YqQ8vT07AIE5rYNhBpiTC34RaeNnfhMynRuVPwOkM86D1KBlOYN3shIvIY 7l2Q== X-Received: by 10.236.203.134 with SMTP id f6mr24862001yho.46.1367115501336; Sat, 27 Apr 2013 19:18:21 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id o42si106063yhe.5.2013.04.27.19.18.21 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Sat, 27 Apr 2013 19:18:21 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.83.1]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 2D29C31C18B; Sat, 27 Apr 2013 19:18:21 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id E0FA216088E; Sat, 27 Apr 2013 19:18:20 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 27 Apr 2013 19:17:38 -0700 Message-Id: <1367115472-29531-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1367115472-29531-1-git-send-email-sjg@chromium.org> References: <1367115472-29531-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQlx6QWoBZw3WyreqO8JvvMYwY9XJ6plcfhat3fnIP9+/je/BbA05aWDMkVZqah2Ot1Tts8ZEXePAiABVaCWynlZZfASI3WqPbstFgQNeQfPyAguYWlcauqkWLxbIJmcKw+/vcJFisJ+1KZJwIIXtrNwPU682FpWJ5l42sMG6oYWy13sVEXy5DSVBiCTlodjQFEYU1jP Cc: Tom Rini , u-boot-review@google.com Subject: [U-Boot] [RFC PATCH 01/15] bootstage; Correct printf types 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 The unstash code is a bit loose with its printf() types, which gives warnings on sandbox. Correct this. Signed-off-by: Simon Glass --- common/bootstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/bootstage.c b/common/bootstage.c index a1e0939..d0ea632 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -401,9 +401,9 @@ int bootstage_unstash(void *base, int size) } if (hdr->count * sizeof(*rec) > hdr->size) { - debug("%s: Bootstage has %d records needing %d bytes, but " + debug("%s: Bootstage has %d records needing %lu bytes, but " "only %d bytes is available\n", __func__, hdr->count, - hdr->count * sizeof(*rec), hdr->size); + (ulong)hdr->count * sizeof(*rec), hdr->size); return -1; }