@@ -198,7 +198,7 @@ int SPIFBlockDevice::init()
198
198
_region_high_boundary[0 ] = _device_size_bytes - 1 ;
199
199
200
200
if ( (sector_map_table_addr != 0 ) && (0 != sector_map_table_size) ) {
201
- tr_info (" INFO: init - Parsing Sector Map Table - addr: 0x%xh , Size: %d" , sector_map_table_addr,
201
+ tr_info (" INFO: init - Parsing Sector Map Table - addr: 0x%lxh , Size: %d" , sector_map_table_addr,
202
202
sector_map_table_size);
203
203
if (0 != _sfdp_parse_sector_map_table (sector_map_table_addr, sector_map_table_size) ) {
204
204
tr_error (" ERROR: init - Parse Sector Map Table Failed" );
@@ -282,7 +282,7 @@ int SPIFBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t size)
282
282
uint32_t offset = 0 ;
283
283
uint32_t chunk = 0 ;
284
284
285
- tr_debug (" DEBUG: program - Buff: 0x%x , addr: %llu, size: %llu" , buffer, addr, size);
285
+ tr_debug (" DEBUG: program - Buff: 0x%lxh , addr: %llu, size: %llu" , ( uint32_t ) buffer, addr, size);
286
286
287
287
while (size > 0 ) {
288
288
@@ -351,7 +351,7 @@ int SPIFBlockDevice::erase(bd_addr_t addr, bd_size_t in_size)
351
351
cur_erase_inst = _erase_type_inst_arr[type];
352
352
chunk = _erase_type_size_arr[type];
353
353
354
- tr_debug (" DEBUG: erase - addr: %llu, size:%d, Inst: 0x%xh, chunk: %d , " ,
354
+ tr_debug (" DEBUG: erase - addr: %llu, size:%d, Inst: 0x%xh, chunk: %lu , " ,
355
355
addr, size, cur_erase_inst, chunk);
356
356
tr_debug (" DEBUG: erase - Region: %d, Type:%d" ,
357
357
region, type);
@@ -999,8 +999,8 @@ int SPIFBlockDevice::_utils_iterate_next_largest_erase_type(uint8_t& bitfield, i
999
999
for (i_ind = 3 ; i_ind >= 0 ; i_ind--) {
1000
1000
if (bitfield & type_mask) {
1001
1001
largest_erase_type = i_ind;
1002
- if ( (size > _erase_type_size_arr[largest_erase_type]) &&
1003
- ((boundry - offset) > _erase_type_size_arr[largest_erase_type]) ) {
1002
+ if ( (size > ( int )( _erase_type_size_arr[largest_erase_type]) ) &&
1003
+ ((boundry - offset) > ( int )( _erase_type_size_arr[largest_erase_type]) ) ) {
1004
1004
break ;
1005
1005
} else {
1006
1006
bitfield &= ~type_mask;
0 commit comments