summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2018-12-11 12:10:04 +0100
committerNico Huber <nico.h@gmx.de>2018-12-21 13:36:56 +0000
commitba72e91ec13f6adfd018a7af394a0d1db3ab2f81 (patch)
tree312dc0bb35b45409a16eecab028a953eaad78df2
parentbbaa1719b13908ae570c93eba74e5b5f990e8271 (diff)
downloadflashrom-ba72e91ec13f6adfd018a7af394a0d1db3ab2f81.tar.gz
flashrom-ba72e91ec13f6adfd018a7af394a0d1db3ab2f81.tar.bz2
flashrom-ba72e91ec13f6adfd018a7af394a0d1db3ab2f81.zip
fmap: Fix length calculation in error message
Change-Id: Ie0f448970de6a7829f304448e0835eaeb7d103a3 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/30152 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
-rw-r--r--fmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmap.c b/fmap.c
index d44b7fa4e..84b3b5493 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;
}