From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/9] fix format specifiers
Date: Thu, 5 Jun 2014 10:23:36 +0200 [thread overview]
Message-ID: <1401956624-31802-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1401956624-31802-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
common/bootm.c | 4 ++--
common/uimage.c | 4 +++-
drivers/eeprom/at25.c | 4 ++--
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/common/bootm.c b/common/bootm.c
index 871959c..71390cb 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -312,7 +312,7 @@ static int bootm_open_oftree(struct image_data *data, const char *oftree, int nu
static void bootm_print_info(struct image_data *data)
{
if (data->os_res)
- printf("OS image is at 0x%08x-0x%08x\n",
+ printf("OS image is at " PRINTF_CONVERSION_RESOURCE "-" PRINTF_CONVERSION_RESOURCE "\n",
data->os_res->start,
data->os_res->end);
else
@@ -329,7 +329,7 @@ static void bootm_print_info(struct image_data *data)
printf(", multifile image %d", data->initrd_num);
printf("\n");
if (data->initrd_res)
- printf("initrd is at 0x%08x-0x%08x\n",
+ printf("initrd is at " PRINTF_CONVERSION_RESOURCE "-" PRINTF_CONVERSION_RESOURCE "\n",
data->initrd_res->start,
data->initrd_res->end);
else
diff --git a/common/uimage.c b/common/uimage.c
index 243dfb0..4ef0968 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -353,7 +353,9 @@ static int uimage_sdram_flush(void *buf, unsigned int len)
uimage_resource = request_sdram_region("uimage",
start, size);
if (!uimage_resource) {
- printf("unable to request SDRAM 0x%08x-0x%08x\n",
+ printf("unable to request SDRAM "
+ PRINTF_CONVERSION_RESOURCE "-"
+ PRINTF_CONVERSION_RESOURCE "\n",
start, start + size - 1);
return -ENOMEM;
}
diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c
index 266f261..3e75b56 100644
--- a/drivers/eeprom/at25.c
+++ b/drivers/eeprom/at25.c
@@ -117,8 +117,8 @@ static ssize_t at25_ee_read(struct cdev *cdev,
*/
status = spi_sync(at25->spi, &m);
dev_dbg(at25->cdev.dev,
- "read %d bytes at %llu --> %d\n",
- count, offset, (int) status);
+ "read %zd bytes at %llu --> %zd\n",
+ count, offset, status);
return status ? status : count;
}
--
2.0.0.rc2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-06-05 8:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 8:23 Fix Compiler warnings Sascha Hauer
2014-06-05 8:23 ` Sascha Hauer [this message]
2014-06-05 8:23 ` [PATCH 2/9] ARM: MXS: Remove unused variables Sascha Hauer
2014-06-05 8:23 ` [PATCH 3/9] ARM: friendlyarm_mini2440: refresh defconfig Sascha Hauer
2014-06-05 8:23 ` [PATCH 4/9] mips: dlink-dir-320: " Sascha Hauer
2014-06-05 9:42 ` Antony Pavlov
2014-06-05 10:16 ` Sascha Hauer
2014-06-05 8:23 ` [PATCH 5/9] mips: ar9331: Add missing #address-cells/#size-cells properties Sascha Hauer
2014-06-05 8:23 ` [PATCH 6/9] PPC: FSL DDR: Fix compiler warning Sascha Hauer
2014-06-05 8:23 ` [PATCH 7/9] commands: drvinfo: Make locally used function static Sascha Hauer
2014-06-05 8:23 ` [PATCH 8/9] gui: IMAGE_RENDERER does not depend on VIDEO Sascha Hauer
2014-06-05 8:23 ` [PATCH 9/9] mips: Add builtin dtb to dtb-y Sascha Hauer
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=1401956624-31802-2-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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