summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:56 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:56 +0000
commit5e98c71436569d39ac9fe0fb66910f28c0e531f8 (patch)
treebc4a93619d9b8aa36e5ea3694f643e9f5b5c8fda /src/target
parent0ab650293add8da2f4d58fd90c17d452312a8a9d (diff)
downloadopenocd+libswd-5e98c71436569d39ac9fe0fb66910f28c0e531f8.tar.gz
openocd+libswd-5e98c71436569d39ac9fe0fb66910f28c0e531f8.tar.bz2
openocd+libswd-5e98c71436569d39ac9fe0fb66910f28c0e531f8.tar.xz
openocd+libswd-5e98c71436569d39ac9fe0fb66910f28c0e531f8.zip
- Fixes '-=' whitespace
- Replace '\(\w\)\(-=\)(' with '\1 \2 ('. - Replace '\(\w\)\(-=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2362 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/image.c2
-rw-r--r--src/target/target.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/target/image.c b/src/target/image.c
index 286a2213..d6042e46 100644
--- a/src/target/image.c
+++ b/src/target/image.c
@@ -1022,7 +1022,7 @@ int image_calculate_checksum(uint8_t* buffer, uint32_t nbytes, uint32_t* checksu
{
run=32768;
}
- nbytes-=run;
+ nbytes -= run;
while (run--)
{
/* as per gdb */
diff --git a/src/target/target.c b/src/target/target.c
index 15946450..7c2f8c5a 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2286,12 +2286,12 @@ static int handle_load_image_command(struct command_context_s *cmd_ctx, char *cm
{
/* clip addresses below */
offset+=min_address-image.sections[i].base_address;
- length-=offset;
+ length -= offset;
}
if (image.sections[i].base_address+buf_cnt>max_address)
{
- length-=(image.sections[i].base_address+buf_cnt)-max_address;
+ length -= (image.sections[i].base_address+buf_cnt)-max_address;
}
if ((retval = target_write_buffer(target, image.sections[i].base_address+offset, length, buffer+offset)) != ERROR_OK)
@@ -4467,12 +4467,12 @@ static int handle_fast_load_image_command(struct command_context_s *cmd_ctx, cha
{
/* clip addresses below */
offset+=min_address-image.sections[i].base_address;
- length-=offset;
+ length -= offset;
}
if (image.sections[i].base_address+buf_cnt>max_address)
{
- length-=(image.sections[i].base_address+buf_cnt)-max_address;
+ length -= (image.sections[i].base_address+buf_cnt)-max_address;
}
fastload[i].address=image.sections[i].base_address+offset;