From 0f532c9990d4d920e390135c04adb03bf6074e46 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 23 Jul 2025 13:28:42 +0200 Subject: mtd-tests: flash_speed: fix error message in read_eraseblock() 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 Signed-off-by: David Oberhollenzer --- 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 ee16289..3319452 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; } -- cgit v1.2.3