summaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:18 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:18 +0000
commitd61714f4d5d72f9f39fbccbb1c3ba5f3d8982020 (patch)
tree9da1225902da0c661ac9880f17c30d753d99bc17 /src/target/target.c
parent53d605e12c3765aeedabf2bfe0c5cc338dc95d5a (diff)
downloadopenocd+libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.gz
openocd+libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.bz2
openocd+libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.tar.xz
openocd+libswd-d61714f4d5d72f9f39fbccbb1c3ba5f3d8982020.zip
- Fixes '[+]=' whitespace
- Replace '\(\w\)\([+]=\)(' with '\1 \2 ('. - Replace '\(\w\)\([+]=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2364 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 5ff22324..56bcdf05 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2285,7 +2285,7 @@ static int handle_load_image_command(struct command_context_s *cmd_ctx, char *cm
if (image.sections[i].base_address<min_address)
{
/* clip addresses below */
- offset+=min_address-image.sections[i].base_address;
+ offset += min_address-image.sections[i].base_address;
length -= offset;
}
@@ -4466,7 +4466,7 @@ static int handle_fast_load_image_command(struct command_context_s *cmd_ctx, cha
if (image.sections[i].base_address<min_address)
{
/* clip addresses below */
- offset+=min_address-image.sections[i].base_address;
+ offset += min_address-image.sections[i].base_address;
length -= offset;
}
@@ -4535,7 +4535,7 @@ static int handle_fast_load_command(struct command_context_s *cmd_ctx, char *cmd
{
retval = target_write_buffer(target, fastload[i].address, fastload[i].length, fastload[i].data);
}
- size+=fastload[i].length;
+ size += fastload[i].length;
}
int after=timeval_ms();
command_print(cmd_ctx, "Loaded image %f kBytes/s", (float)(size/1024.0)/((float)(after-ms)/1000.0));