diff options
Diffstat (limited to 'linux_mtd.c')
-rw-r--r-- | linux_mtd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux_mtd.c b/linux_mtd.c index 445a9035..88488c0b 100644 --- a/linux_mtd.c +++ b/linux_mtd.c @@ -214,6 +214,7 @@ static int linux_mtd_read(struct flashctx *flash, uint8_t *buf, } i += step; + update_progress(flash, FLASHROM_PROGRESS_READ, i, len); } return 0; @@ -256,6 +257,7 @@ static int linux_mtd_write(struct flashctx *flash, const uint8_t *buf, } i += step; + update_progress(flash, FLASHROM_PROGRESS_WRITE, i, len); } return 0; @@ -292,6 +294,7 @@ static int linux_mtd_erase(struct flashctx *flash, __func__, ret, strerror(errno)); return 1; } + update_progress(flash, FLASHROM_PROGRESS_ERASE, u + data->erasesize, len); } return 0; |