summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Baykov <dev@borisbaykov.com>2016-06-08 12:23:55 +0200
committerCédric Le Goater <clg@kaod.org>2016-06-08 12:23:55 +0200
commitb056c5245741e874faa9c315166ca8b53d309efa (patch)
tree08f72ec68062b8d8749c2107a8fce51514c072bf
parentb69f7178cdb169f25affcad635cf07824ef53eeb (diff)
downloadflashrom-b056c5245741e874faa9c315166ca8b53d309efa.zip
flashrom-b056c5245741e874faa9c315166ca8b53d309efa.tar.gz
4BA: Some small visual changes for 4-byte addresses
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 <dev@borisbaykov.com>, Russia, Jan 2014 [clg: ported from https://www.flashrom.org/pipermail/flashrom/2015-January/013207.html ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
-rw-r--r--flashrom.c6
1 files 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)) {
OpenPOWER on IntegriCloud