sim: log flash writes/reads/erases at highest level
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/sim/mcuboot-sys/csupport/run.c b/sim/mcuboot-sys/csupport/run.c
index 5697948..f531db9 100644
--- a/sim/mcuboot-sys/csupport/run.c
+++ b/sim/mcuboot-sys/csupport/run.c
@@ -304,7 +304,7 @@
int flash_area_read(const struct flash_area *area, uint32_t off, void *dst,
uint32_t len)
{
- BOOT_LOG_DBG("%s: area=%d, off=%x, len=%x",
+ BOOT_LOG_SIM("%s: area=%d, off=%x, len=%x",
__func__, area->fa_id, off, len);
return sim_flash_read(area->fa_device_id, area->fa_off + off, dst, len);
}
@@ -312,7 +312,7 @@
int flash_area_write(const struct flash_area *area, uint32_t off, const void *src,
uint32_t len)
{
- BOOT_LOG_DBG("%s: area=%d, off=%x, len=%x", __func__,
+ BOOT_LOG_SIM("%s: area=%d, off=%x, len=%x", __func__,
area->fa_id, off, len);
struct sim_context *ctx = sim_get_context();
if (--(ctx->flash_counter) == 0) {
@@ -324,7 +324,7 @@
int flash_area_erase(const struct flash_area *area, uint32_t off, uint32_t len)
{
- BOOT_LOG_DBG("%s: area=%d, off=%x, len=%x", __func__,
+ BOOT_LOG_SIM("%s: area=%d, off=%x, len=%x", __func__,
area->fa_id, off, len);
struct sim_context *ctx = sim_get_context();
if (--(ctx->flash_counter) == 0) {
@@ -341,7 +341,7 @@
uint8_t *u8dst;
int rc;
- BOOT_LOG_DBG("%s: area=%d, off=%x, len=%x", __func__, area->fa_id, off, len);
+ BOOT_LOG_SIM("%s: area=%d, off=%x, len=%x", __func__, area->fa_id, off, len);
rc = sim_flash_read(area->fa_device_id, area->fa_off + off, dst, len);
if (rc) {