From patchwork Wed Aug 26 19:21:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 511038 X-Patchwork-Delegate: trini@ti.com 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 EA6B714028E for ; Thu, 27 Aug 2015 05:20:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C7D984B664; Wed, 26 Aug 2015 21:20:15 +0200 (CEST) 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 nJFUw5H3Mwad; Wed, 26 Aug 2015 21:20:15 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2E6D24B65F; Wed, 26 Aug 2015 21:20:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 767C94B65F for ; Wed, 26 Aug 2015 21:20:13 +0200 (CEST) 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 Uoq0agaMC_Xt for ; Wed, 26 Aug 2015 21:20:13 +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-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by theia.denx.de (Postfix) with ESMTPS id 121C74B65D for ; Wed, 26 Aug 2015 21:20:10 +0200 (CEST) Received: by qgeb6 with SMTP id b6so132656330qge.3 for ; Wed, 26 Aug 2015 12:20:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=c87KemoOxTVzI+9sJidkdnIBajlOQEMHOXBScyhJoM0=; b=L2oDkcJ80KdKHIwXEhBTPDLH+3GEnyvoW2DHP3Rm09PEVCW8Z4kmgGy45q0xBahOAi qGqHQqOk2AMdp/tNnGmLNv6gijGS+XIDQZQ71WQWN7R/vQ/O79ThLB2tBcnS0jnnZm9I bs/5lq6x1/9SuXxUHBqGkrz4jWFoKH/L9XCaGgUm04dkPP46ByM6iPKbfEK51V+mGBX8 M/UrezQZpVHjjEuX6qSQHc5DcuFPWqgL/SKczrOVwwunebG0deZ1EggOBV5hO/7dNTOY AhnRsq/IlrUkZxAViS1dNABHN1ZhvCWCJ9IpCDB+IodC3l5FW7CM6bPe/ad0P/RskbLe SXhQ== X-Received: by 10.140.128.2 with SMTP id 2mr679056qha.8.1440616809001; Wed, 26 Aug 2015 12:20:09 -0700 (PDT) Received: from localhost.localdomain (cpe-75-180-230-22.ec.res.rr.com. [75.180.230.22]) by smtp.gmail.com with ESMTPSA id j207sm16888553qhc.17.2015.08.26.12.20.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 12:20:08 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 26 Aug 2015 15:21:22 -0400 Message-Id: <1440616883-20885-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [U-Boot] [PATCH 1/2] tools/atmelimage.c: Fix warning when debug is enabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" Otherwise we get: tools/atmelimage.c:134:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat=] debug("atmelimage: interrupt vector #%d is 0x%08X\n", pos+1, ^ Signed-off-by: Tom Rini Reviewed-by: Andreas Bießmann --- tools/atmelimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/atmelimage.c b/tools/atmelimage.c index 5b72ac5..0979eef 100644 --- a/tools/atmelimage.c +++ b/tools/atmelimage.c @@ -131,7 +131,7 @@ static int atmel_verify_header(unsigned char *ptr, int image_size, /* check the seven interrupt vectors of binary */ for (pos = 0; pos < 7; pos++) { - debug("atmelimage: interrupt vector #%d is 0x%08X\n", pos+1, + debug("atmelimage: interrupt vector #%ld is 0x%08X\n", pos+1, ints[pos]); /* * all vectors except the 6'th one must contain valid