drivers: flash: cast offset value into ssize_t
To fix compiler warnings cast offset value into ssize_t. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
This commit is contained in:
parent
c759a35d08
commit
a82ccba9ea
|
@ -241,7 +241,7 @@ static int flash_flexspi_nor_erase_sector(const struct device *dev,
|
|||
.dataSize = 0,
|
||||
};
|
||||
|
||||
LOG_DBG("Erasing sector at 0x%08x", offset);
|
||||
LOG_DBG("Erasing sector at 0x%08zx", (ssize_t) offset);
|
||||
|
||||
return memc_flexspi_transfer(data->controller, &transfer);
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ static int flash_flexspi_nor_page_program(const struct device *dev,
|
|||
.dataSize = len,
|
||||
};
|
||||
|
||||
LOG_DBG("Page programming %d bytes to 0x%08x", len, offset);
|
||||
LOG_DBG("Page programming %d bytes to 0x%08zx", len, (ssize_t) offset);
|
||||
|
||||
return memc_flexspi_transfer(data->controller, &transfer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue