From patchwork Wed Jan 23 13:31:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 214945 X-Patchwork-Delegate: monstr@monstr.eu 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 9E6502C007C for ; Thu, 24 Jan 2013 00:31:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D92624A137; Wed, 23 Jan 2013 14:31: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 r5uJF7MnEf9g; Wed, 23 Jan 2013 14:31:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23EEB4A10B; Wed, 23 Jan 2013 14:31:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B31E44A10B for ; Wed, 23 Jan 2013 14:31:26 +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 NT9yoYSGwo92 for ; Wed, 23 Jan 2013 14:31:25 +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-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by theia.denx.de (Postfix) with ESMTPS id 8FD344A109 for ; Wed, 23 Jan 2013 14:31:23 +0100 (CET) Received: by mail-wi0-f182.google.com with SMTP id hn14so708213wib.15 for ; Wed, 23 Jan 2013 05:31:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=yypL1He1ymcewni+NtVri6rSyNV4YmhUlPRVmebvnY0=; b=NvvLM4PbX/1myg7IDOQ8o4Uw3WSV1RcGtAUwZWCHd5pifPuyTkfk5/MqMdNE32AyWX EZ1FvVKqh66e76JLGGzMzGD1FEgt8won9uh6AUrxiSltVkNc34GOmwcMAjGTg0D/Ncs3 OjHg0JidWQMY0OfvNnDhvSikzldgzIHary/m0B/kX5djCe72DZQcqB7gFgc6KcE3caWg dmjmGGXM+OwblPthGWq3PL1d/0Zt9gO6kv53kxl9Od4WLMpTNnp59tFzsWmMnuoVGTd7 pOShxJA+kL6Ebd4jkFHvj4KUdUW2PadcBIUuIEDJA62ep6i8p89pvOLwYgr20Yph2b8V 1lyg== X-Received: by 10.180.92.36 with SMTP id cj4mr2561713wib.23.1358947883520; Wed, 23 Jan 2013 05:31:23 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPS id i2sm26820289wiw.3.2013.01.23.05.31.21 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 05:31:22 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 23 Jan 2013 14:31:12 +0100 Message-Id: <1358947873-3731-3-git-send-email-michal.simek@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1358947873-3731-1-git-send-email-michal.simek@xilinx.com> References: <1358947873-3731-1-git-send-email-michal.simek@xilinx.com> X-Gm-Message-State: ALoCoQky16nhohVfx493DBvTujjoicjCxCYRgyYnvOPP/mAbir4GCSj8i2NL4HxDYCf/3raa4ECu Subject: [U-Boot] [PATCH 3/4] common: cmd_bdinfo: Fix compilation warning for microblaze 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 Fix one printf compilation warning in microblaze bdinfo part. Warning log: cmd_bdinfo.c: In function 'do_bdinfo': cmd_bdinfo.c:219:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat] Signed-off-by: Michal Simek --- common/cmd_bdinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 65a5e08..28b5241 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -216,7 +216,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #if defined(CONFIG_CMD_NET) print_eths(); #endif - printf("baudrate = %u bps\n", (ulong)bd->bi_baudrate); + printf("baudrate = %u bps\n", bd->bi_baudrate); return 0; }