From ba72e91ec13f6adfd018a7af394a0d1db3ab2f81 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 11 Dec 2018 12:10:04 +0100 Subject: fmap: Fix length calculation in error message Change-Id: Ie0f448970de6a7829f304448e0835eaeb7d103a3 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/30152 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- fmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fmap.c') diff --git a/fmap.c b/fmap.c index d44b7fa4..84b3b549 100644 --- a/fmap.c +++ b/fmap.c @@ -243,7 +243,7 @@ static int fmap_bsearch_rom(struct fmap **fmap_out, struct flashctx *const flash if (flashctx->chip->read(flashctx, (uint8_t *)fmap + sig_len, offset + sig_len, sizeof(*fmap) - sig_len)) { msg_cerr("Cannot read %zu bytes at offset %06zx\n", - sizeof(*fmap) + sig_len, offset + sig_len); + sizeof(*fmap) - sig_len, offset + sig_len); continue; } -- cgit v1.2.3