public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/10] GCC4.6: Squash warning in mpc5121ads.c
Date: Tue, 25 Oct 2011 11:38:21 +0200	[thread overview]
Message-ID: <1319535510-20737-2-git-send-email-marek.vasut@gmail.com> (raw)
In-Reply-To: <1319535510-20737-1-git-send-email-marek.vasut@gmail.com>

mpc5121ads.c: In function 'misc_init_r':
mpc5121ads.c:256: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'
mpc5121ads.c:263: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 board/freescale/mpc5121ads/mpc5121ads.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mpc5121ads/mpc5121ads.c b/board/freescale/mpc5121ads/mpc5121ads.c
index b356a47..97eeab3 100644
--- a/board/freescale/mpc5121ads/mpc5121ads.c
+++ b/board/freescale/mpc5121ads/mpc5121ads.c
@@ -253,14 +253,14 @@ int misc_init_r(void)
 	/* Verify if enabled */
 	tmp_val = 0;
 	i2c_read(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val));
-	debug("DVI Encoder Read: 0x%02lx\n", tmp_val);
+	debug("DVI Encoder Read: 0x%02x\n", tmp_val);
 
 	tmp_val = 0x10;
 	i2c_write(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val));
 	/* Verify if enabled */
 	tmp_val = 0;
 	i2c_read(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val));
-	debug("DVI Encoder Read: 0x%02lx\n", tmp_val);
+	debug("DVI Encoder Read: 0x%02x\n", tmp_val);
 
 	return 0;
 }
-- 
1.7.6.3

  reply	other threads:[~2011-10-25  9:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  9:38 [U-Boot] [PATCH 00/10] CLEANUP: Cleanup of board/ directory Marek Vasut
2011-10-25  9:38 ` Marek Vasut [this message]
2011-10-27 21:57   ` [U-Boot] [PATCH 01/10] GCC4.6: Squash warning in mpc5121ads.c Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 02/10] GCC4.6: Squash warnings in diu.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 03/10] GCC4.6: Squash warnings in mpc8610hpcd.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 04/10] GCC4.6: Squash warnings in tqm834x.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 05/10] GCC4.6: Squash warning in cmd_pmc440.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 06/10] GCC4.6: Squash warnings in pmc405de.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 07/10] GCC4.6: Squash warnings in r360mpi/flash.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 08/10] GCC4.6: Squash warnings in PPChameleonEVB/flash.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 09/10] GCC4.6: Squash error in cpc45/pd67290.c Marek Vasut
2011-10-27 21:57   ` Wolfgang Denk
2011-10-25  9:38 ` [U-Boot] [PATCH 10/10] GCC4.6: Add macros to mv_gen_reg.h Marek Vasut
2011-10-27 21:58   ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1319535510-20737-2-git-send-email-marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox