summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-01 10:08:41 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-01 10:08:41 +0000
commitf7f38fa70d8d9f6999d15ebe1beca28143e16c52 (patch)
tree256e5643c285e8abdc56226299996dd71df4a16f /src
parentfbf775c0b72fcc212962f725525673ab253a0883 (diff)
downloadopenocd+libswd-f7f38fa70d8d9f6999d15ebe1beca28143e16c52.tar.gz
openocd+libswd-f7f38fa70d8d9f6999d15ebe1beca28143e16c52.tar.bz2
openocd+libswd-f7f38fa70d8d9f6999d15ebe1beca28143e16c52.tar.xz
openocd+libswd-f7f38fa70d8d9f6999d15ebe1beca28143e16c52.zip
- fixes the incorrect info msg displayed during stellaris flash programming.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2660 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/flash/stellaris.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c
index 806544d5..dfc276e2 100644
--- a/src/flash/stellaris.c
+++ b/src/flash/stellaris.c
@@ -917,8 +917,8 @@ static int stellaris_write_block(struct flash_bank_s *bank, uint8_t *buffer, uin
buf_set_u32(reg_params[0].value, 0, 32, source->address);
buf_set_u32(reg_params[1].value, 0, 32, address);
buf_set_u32(reg_params[2].value, 0, 32, 4*thisrun_count);
- LOG_INFO("Algorithm flash write %" PRIi32 " words to 0x%" PRIx32 ", %" PRIi32 " remaining", thisrun_count, address, wcount);
- LOG_DEBUG("Algorithm flash write %" PRIi32 " words to 0x%" PRIx32 ", %" PRIi32 " remaining", thisrun_count, address, wcount);
+ LOG_INFO("Algorithm flash write %" PRIi32 " words to 0x%" PRIx32 ", %" PRIi32 " remaining", thisrun_count, address, (wcount - thisrun_count));
+ LOG_DEBUG("Algorithm flash write %" PRIi32 " words to 0x%" PRIx32 ", %" PRIi32 " remaining", thisrun_count, address, (wcount - thisrun_count));
if ((retval = target_run_algorithm(target, 0, NULL, 3, reg_params, write_algorithm->address, write_algorithm->address + sizeof(stellaris_write_code)-10, 10000, &armv7m_info)) != ERROR_OK)
{
LOG_ERROR("error executing stellaris flash write algorithm");