aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2025-07-23 13:28:42 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2025-11-28 20:13:57 +0100
commit0f532c9990d4d920e390135c04adb03bf6074e46 (patch)
tree5479831e54f2a7e32b5895d90bbb86b9591b5aeb
parentb139f3ccd1521071aab29420f417abb937d021ce (diff)
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 <j4g8y7@gmail.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/mtd-tests/flash_speed.c2
1 files changed, 1 insertions, 1 deletions
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;
}