summaryrefslogtreecommitdiff
path: root/src/jtag/presto.c
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-19 23:15:58 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-19 23:15:58 +0000
commit40d7e81c45d112522f021205f7f1b46f025b8984 (patch)
tree2058ea0252b5753be1ab7c0f508958fb7e47823c /src/jtag/presto.c
parent9eb3181cc8bb0b82d6c9e580c2042274e5490b77 (diff)
downloadopenocd+libswd-40d7e81c45d112522f021205f7f1b46f025b8984.tar.gz
openocd+libswd-40d7e81c45d112522f021205f7f1b46f025b8984.tar.bz2
openocd+libswd-40d7e81c45d112522f021205f7f1b46f025b8984.tar.xz
openocd+libswd-40d7e81c45d112522f021205f7f1b46f025b8984.zip
printf() warning fixes due to uint32_t change-over
git-svn-id: svn://svn.berlios.de/openocd/trunk@2293 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/presto.c')
-rw-r--r--src/jtag/presto.c6
1 files changed, 4 insertions, 2 deletions
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;
}