aboutsummaryrefslogtreecommitdiff
path: root/external/pflash
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-06-01 19:58:16 +0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-19 15:12:57 +1000
commita921764eed0a38670cacc47fa3aa9d5e87e1ab6b (patch)
tree1d0beb42bd07148f3f3f1a09041e32e913e70068 /external/pflash
parente9b15cbf9dfb21ed2abc0b2e4de747cb1c9a247c (diff)
downloadskiboot-a921764eed0a38670cacc47fa3aa9d5e87e1ab6b.zip
skiboot-a921764eed0a38670cacc47fa3aa9d5e87e1ab6b.tar.gz
skiboot-a921764eed0a38670cacc47fa3aa9d5e87e1ab6b.tar.bz2
external/pflash: fix range printing
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Reviewed-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/pflash')
-rw-r--r--external/pflash/pflash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 8a86517..ae1d873 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -302,7 +302,7 @@ static void program_file(const char *file, uint32_t start, uint32_t size)
exit(1);
}
printf("About to program \"%s\" at 0x%08x..0x%08x !\n",
- file, start, size);
+ file, start, start + size);
check_confirm();
if (dummy_run) {
@@ -359,7 +359,7 @@ static void do_read_file(const char *file, uint32_t start, uint32_t size)
exit(1);
}
printf("Reading to \"%s\" from 0x%08x..0x%08x !\n",
- file, start, size);
+ file, start, start + size);
progress_init(size >> 8);
while(size) {