From 40d7e81c45d112522f021205f7f1b46f025b8984 Mon Sep 17 00:00:00 2001 From: duane Date: Fri, 19 Jun 2009 23:15:58 +0000 Subject: printf() warning fixes due to uint32_t change-over git-svn-id: svn://svn.berlios.de/openocd/trunk@2293 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/presto.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/jtag/presto.c') diff --git a/src/jtag/presto.c b/src/jtag/presto.c index 385c93c0..1331f2af 100644 --- a/src/jtag/presto.c +++ b/src/jtag/presto.c @@ -150,7 +150,8 @@ static int presto_write(uint8_t *buf, uint32_t size) if (ftbytes != size) { - LOG_ERROR("couldn't write the requested number of bytes to PRESTO (%u < %u)", (uint32_t)ftbytes, size); + LOG_ERROR("couldn't write the requested number of bytes to PRESTO (%u < %u)", + (unsigned)ftbytes, (unsigned)size); return ERROR_JTAG_DEVICE_ERROR; } @@ -192,7 +193,8 @@ static int presto_read(uint8_t* buf, uint32_t size) if (ftbytes != size) { /* this is just a warning, there might have been timeout when detecting PRESTO, which is not fatal */ - LOG_WARNING("couldn't read the requested number of bytes from PRESTO (%u < %u)", (uint32_t)ftbytes, size); + LOG_WARNING("couldn't read the requested number of bytes from PRESTO (%u < %u)", + (unsigned)ftbytes, (unsigned)size); return ERROR_JTAG_DEVICE_ERROR; } -- cgit v1.2.3