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:
Bartosz Bilas 2021-11-02 15:00:42 +01:00 committed by Anas Nashif
parent c759a35d08
commit a82ccba9ea
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}