|
From: <du...@ma...> - 2009-06-21 05:20:35
|
Author: duane
Date: 2009-06-21 05:20:31 +0200 (Sun, 21 Jun 2009)
New Revision: 2336
Modified:
trunk/src/flash/lpc3180_nand_controller.c
Log:
C99 printf() -Werror fixes
Modified: trunk/src/flash/lpc3180_nand_controller.c
===================================================================
--- trunk/src/flash/lpc3180_nand_controller.c 2009-06-21 03:20:26 UTC (rev 2335)
+++ trunk/src/flash/lpc3180_nand_controller.c 2009-06-21 03:20:31 UTC (rev 2336)
@@ -750,11 +750,11 @@
{
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)
|