From: <du...@ma...> - 2009-06-21 05:22:07
|
Author: duane Date: 2009-06-21 05:22:04 +0200 (Sun, 21 Jun 2009) New Revision: 2343 Modified: trunk/src/flash/ecos.c Log: C99 printf() -Werror fixes Modified: trunk/src/flash/ecos.c =================================================================== --- trunk/src/flash/ecos.c 2009-06-21 03:21:59 UTC (rev 2342) +++ trunk/src/flash/ecos.c 2009-06-21 03:22:04 UTC (rev 2343) @@ -205,7 +205,7 @@ } target_write_buffer(target, image.sections[i].base_address, buf_cnt, buffer); image_size += buf_cnt; - LOG_DEBUG("%u byte written at address 0x%8.8x", buf_cnt, image.sections[i].base_address); + LOG_DEBUG("%" PRIu32 " byte written at address 0x%8.8" PRIx32 "", buf_cnt, image.sections[i].base_address); free(buffer); } @@ -287,7 +287,7 @@ if (flashErr != 0x0) { - LOG_ERROR("Flash erase failed with %d (%s)\n", flashErr, flash_errmsg(flashErr)); + LOG_ERROR("Flash erase failed with %d (%s)\n", (int)flashErr, flash_errmsg(flashErr)); return ERROR_FAIL; } @@ -346,7 +346,7 @@ if (flashErr != 0x0) { - LOG_ERROR("Flash prog failed with %d (%s)\n", flashErr, flash_errmsg(flashErr)); + LOG_ERROR("Flash prog failed with %d (%s)\n", (int)flashErr, flash_errmsg(flashErr)); return ERROR_FAIL; } } |