From b056c5245741e874faa9c315166ca8b53d309efa Mon Sep 17 00:00:00 2001 From: Boris Baykov Date: Wed, 8 Jun 2016 12:23:55 +0200 Subject: 4BA: Some small visual changes for 4-byte addresses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reason to patch: %06x isn't enough to show 32-bit address. Patched files ------------- flashrom.c + changed in address print %06x to %08x for support of 32MB+ chips Signed-off-by: Boris Baykov , Russia, Jan 2014 [clg: ported from https://www.flashrom.org/pipermail/flashrom/2015-January/013207.html ] Signed-off-by: Cédric Le Goater --- flashrom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flashrom.c b/flashrom.c index 28b177b..03ca262 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1433,8 +1433,8 @@ static int selfcheck_eraseblocks(const struct flashchip *chip) continue; if (done != chip->total_size * 1024) { msg_gerr("ERROR: Flash chip %s erase function %i " - "region walking resulted in 0x%06x bytes total," - " expected 0x%06x bytes. Please report a bug at" + "region walking resulted in 0x%08x bytes total," + " expected 0x%08x bytes. Please report a bug at" " flashrom@flashrom.org\n", chip->name, k, done, chip->total_size * 1024); ret = 1; @@ -1548,7 +1548,7 @@ static int walk_eraseregions(struct flashctx *flash, int erasefunction, /* Print this for every block except the first one. */ if (i || j) msg_cdbg(", "); - msg_cdbg("0x%06x-0x%06x", start, + msg_cdbg("0x%08x-0x%08x", start, start + len - 1); if (do_something(flash, start, len, param1, param2, eraser.block_erase)) { -- cgit v1.1