Skip to content

Commit 834a96c

Browse files
author
Offir Kochalsky
committed
Fixing Warnings
1 parent 5b17046 commit 834a96c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SPIFBlockDevice.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int SPIFBlockDevice::init()
198198
_region_high_boundary[0] = _device_size_bytes - 1;
199199

200200
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,
202202
sector_map_table_size);
203203
if (0 != _sfdp_parse_sector_map_table(sector_map_table_addr, sector_map_table_size) ) {
204204
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)
282282
uint32_t offset = 0;
283283
uint32_t chunk = 0;
284284

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);
286286

287287
while (size > 0) {
288288

@@ -351,7 +351,7 @@ int SPIFBlockDevice::erase(bd_addr_t addr, bd_size_t in_size)
351351
cur_erase_inst = _erase_type_inst_arr[type];
352352
chunk = _erase_type_size_arr[type];
353353

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 , ",
355355
addr, size, cur_erase_inst, chunk);
356356
tr_debug("DEBUG: erase - Region: %d, Type:%d",
357357
region, type);
@@ -999,8 +999,8 @@ int SPIFBlockDevice::_utils_iterate_next_largest_erase_type(uint8_t& bitfield, i
999999
for (i_ind = 3; i_ind >= 0; i_ind--) {
10001000
if (bitfield & type_mask) {
10011001
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])) ) {
10041004
break;
10051005
} else {
10061006
bitfield &= ~type_mask;

0 commit comments

Comments
 (0)