From: <du...@ma...> - 2009-06-21 05:22:03
|
Author: duane Date: 2009-06-21 05:21:59 +0200 (Sun, 21 Jun 2009) New Revision: 2342 Modified: trunk/src/flash/str7x.c Log: C99 printf() -Werror fixes Modified: trunk/src/flash/str7x.c =================================================================== --- trunk/src/flash/str7x.c 2009-06-21 03:21:55 UTC (rev 2341) +++ trunk/src/flash/str7x.c 2009-06-21 03:21:59 UTC (rev 2342) @@ -259,7 +259,7 @@ sectors |= str7x_info->sector_bits[i]; } - LOG_DEBUG("sectors: 0x%x", sectors); + LOG_DEBUG("sectors: 0x%" PRIx32 "", sectors); /* clear FLASH_ER register */ target_write_u32(target, str7x_get_flash_adr(bank, FLASH_ER), 0x0); @@ -281,7 +281,7 @@ if (retval) { - LOG_ERROR("error erasing flash bank, FLASH_ER: 0x%x", retval); + LOG_ERROR("error erasing flash bank, FLASH_ER: 0x%" PRIx32 "", retval); return ERROR_FLASH_OPERATION_FAILED; } @@ -335,7 +335,7 @@ retval = str7x_result(bank); - LOG_DEBUG("retval: 0x%8.8x", retval); + LOG_DEBUG("retval: 0x%8.8" PRIx32 "", retval); if (retval & FLASH_ERER) return ERROR_FLASH_SECTOR_NOT_ERASED; @@ -481,7 +481,7 @@ if (offset & 0x7) { - LOG_WARNING("offset 0x%x breaks required 8-byte alignment", offset); + LOG_WARNING("offset 0x%" PRIx32 " breaks required 8-byte alignment", offset); return ERROR_FLASH_DST_BREAKS_ALIGNMENT; } |