summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:20:31 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 03:20:31 +0000
commitf6dcfac6792c166f4b7da11ec824476ecc45bc92 (patch)
treeec373671c99f5074c58a6ff855857ba69dd376b9 /src
parent96c8ff3d0861d1bcd6a4e1c83130dc1626e27883 (diff)
downloadopenocd_libswd-f6dcfac6792c166f4b7da11ec824476ecc45bc92.tar.gz
openocd_libswd-f6dcfac6792c166f4b7da11ec824476ecc45bc92.tar.bz2
openocd_libswd-f6dcfac6792c166f4b7da11ec824476ecc45bc92.tar.xz
openocd_libswd-f6dcfac6792c166f4b7da11ec824476ecc45bc92.zip
C99 printf() -Werror fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2336 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/flash/lpc3180_nand_controller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/lpc3180_nand_controller.c
index b99361aa..de6d4e2b 100644
--- a/src/flash/lpc3180_nand_controller.c
+++ b/src/flash/lpc3180_nand_controller.c
@@ -750,11 +750,11 @@ static int lpc3180_read_page(struct nand_device_s *device, uint32_t page, uint8_
{
if (mlc_isr & 0x40)
{
- LOG_ERROR("uncorrectable error detected: 0x%2.2x", mlc_isr);
+ LOG_ERROR("uncorrectable error detected: 0x%2.2x", (unsigned)mlc_isr);
return ERROR_NAND_OPERATION_FAILED;
}
- LOG_WARNING("%i symbol error detected and corrected", ((mlc_isr & 0x30) >> 4) + 1);
+ LOG_WARNING("%i symbol error detected and corrected", ((int)(((mlc_isr & 0x30) >> 4) + 1)));
}
if (data)