[PATCH mtd-utils 2/2] mtd-tests: flash_speed: fix error message in read_eraseblock()
Gabor Juhos
j4g8y7 at gmail.com
Wed Jul 23 04:28:42 PDT 2025
Replace 'write' with 'read' in the error message of the read_eraseblock()
function to indicate the correct direction of the operation.
Signed-off-by: Gabor Juhos <j4g8y7 at gmail.com>
---
tests/mtd-tests/flash_speed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/mtd-tests/flash_speed.c b/tests/mtd-tests/flash_speed.c
index ee162891d5c9288ffb9d09eb2c649db027eedcba..3319452194a54124a7f691994b41043fe0413229 100644
--- a/tests/mtd-tests/flash_speed.c
+++ b/tests/mtd-tests/flash_speed.c
@@ -190,7 +190,7 @@ static int read_eraseblock(int ebnum)
{
int err = mtd_read(&mtd, fd, ebnum, 0, iobuf, mtd.eb_size);
if (err)
- fprintf(stderr, "Error writing block %d!\n", ebnum);
+ fprintf(stderr, "Error reading block %d!\n", ebnum);
return err;
}
--
2.50.1
More information about the linux-mtd
mailing list