diff --git a/drivers/bch/bchlib_read.c b/drivers/bch/bchlib_read.c index 1a28995a1f..770dded807 100644 --- a/drivers/bch/bchlib_read.c +++ b/drivers/bch/bchlib_read.c @@ -159,7 +159,7 @@ ssize_t bchlib_read(FAR void *handle, FAR char *buffer, size_t offset, sector, nsectors); if (ret < 0) { - ferr("ERROR: Read failed: %d\n"); + ferr("ERROR: Read failed: %d\n", ret); return ret; }