@@ -206,7 +206,8 @@ boot_erase_region(const struct flash_area *fa, uint32_t off, uint32_t size, bool
206206{
207207 int rc = 0 ;
208208
209- BOOT_LOG_DBG ("boot_erase_region: flash_area %p, offset %d, size %d, backwards == %d" ,
209+ BOOT_LOG_DBG ("boot_erase_region: flash_area %p, offset %" PRIu32 ""
210+ ", size %" PRIu32 ", backwards == %" PRIu8 ,
210211 fa , off , size , (int )backwards );
211212
212213 if (off >= flash_area_get_size (fa ) || (flash_area_get_size (fa ) - off ) < size ) {
@@ -304,7 +305,8 @@ boot_scramble_region(const struct flash_area *fa, uint32_t off, uint32_t size, b
304305{
305306 int rc = 0 ;
306307
307- BOOT_LOG_DBG ("boot_scramble_region: %p %d %d %d" , fa , off , size , (int )backwards );
308+ BOOT_LOG_DBG ("boot_scramble_region: %p %" PRIu32 " %" PRIu32 " %d" ,
309+ fa , off , size , (int )backwards );
308310
309311 if (size == 0 ) {
310312 goto done ;
@@ -330,13 +332,15 @@ boot_scramble_region(const struct flash_area *fa, uint32_t off, uint32_t size, b
330332 } else {
331333 end_offset = ALIGN_DOWN ((off + size ), write_block );
332334 }
333- BOOT_LOG_DBG ("boot_scramble_region: start offset %u, end offset %u" , off , end_offset );
335+ BOOT_LOG_DBG ("boot_scramble_region: start offset %" PRIu32 ", "
336+ "end offset %" PRIu32 , off , end_offset );
334337
335338 while (off != end_offset ) {
336339 /* Write over the area to scramble data that is there */
337340 rc = flash_area_write (fa , off , buf , write_block );
338341 if (rc != 0 ) {
339- BOOT_LOG_DBG ("boot_scramble_region: error %d for %p %d %u" ,
342+ BOOT_LOG_DBG ("boot_scramble_region: error %d for %p "
343+ "%" PRIu32 " %u" ,
340344 rc , fa , off , (unsigned int )write_block );
341345 break ;
342346 }
0 commit comments