Browse Source

- 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
tags/v0.2.0
zwelch 15 years ago
parent
commit
5e98c71436
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/server/telnet_server.c
  2. +1
    -1
      src/target/image.c
  3. +4
    -4
      src/target/target.c

+ 1
- 1
src/server/telnet_server.c View File

@@ -120,7 +120,7 @@ void telnet_log_callback(void *priv, const char *file, int line,


/* clear the command line */ /* clear the command line */
telnet_write(connection, "\r", 1); telnet_write(connection, "\r", 1);
for (i = strlen(t_con->prompt) + t_con->line_size; i>0; i-=16)
for (i = strlen(t_con->prompt) + t_con->line_size; i>0; i -= 16)
telnet_write(connection, " ", i>16 ? 16 : i); telnet_write(connection, " ", i>16 ? 16 : i);
telnet_write(connection, "\r", 1); telnet_write(connection, "\r", 1);




+ 1
- 1
src/target/image.c View File

@@ -1022,7 +1022,7 @@ int image_calculate_checksum(uint8_t* buffer, uint32_t nbytes, uint32_t* checksu
{ {
run=32768; run=32768;
} }
nbytes-=run;
nbytes -= run;
while (run--) while (run--)
{ {
/* as per gdb */ /* as per gdb */


+ 4
- 4
src/target/target.c View File

@@ -2286,12 +2286,12 @@ static int handle_load_image_command(struct command_context_s *cmd_ctx, char *cm
{ {
/* clip addresses below */ /* clip addresses below */
offset+=min_address-image.sections[i].base_address; offset+=min_address-image.sections[i].base_address;
length-=offset;
length -= offset;
} }


if (image.sections[i].base_address+buf_cnt>max_address) 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) 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 */ /* clip addresses below */
offset+=min_address-image.sections[i].base_address; offset+=min_address-image.sections[i].base_address;
length-=offset;
length -= offset;
} }


if (image.sections[i].base_address+buf_cnt>max_address) 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; fastload[i].address=image.sections[i].base_address+offset;


Loading…
Cancel
Save