summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:40:10 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:40:10 +0000
commit4ce93ac479c29210c4b472a16733bed2537c35f9 (patch)
tree32b3f91bc20272afc249a4bd683956f2d98a5852 /src/target
parent128a73342856217e98a5da64b2805e062fd4e00d (diff)
downloadopenocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.gz
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.bz2
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.xz
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.zip
- Fixes '>=' whitespace
- Replace ')\(>=\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\(>=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2367 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm720t.c2
-rw-r--r--src/target/arm7_9_common.c4
-rw-r--r--src/target/arm920t.c2
-rw-r--r--src/target/arm926ejs.c2
-rw-r--r--src/target/etm.h2
-rw-r--r--src/target/target.c6
-rw-r--r--src/target/xscale.c4
7 files changed, 11 insertions, 11 deletions
diff --git a/src/target/arm720t.c b/src/target/arm720t.c
index cdc5fd77..d709bacc 100644
--- a/src/target/arm720t.c
+++ b/src/target/arm720t.c
@@ -388,7 +388,7 @@ int arm720t_soft_reset_halt(struct target_s *target)
{
break;
}
- if (debug_level>=3)
+ if (debug_level >= 3)
{
alive_sleep(100);
} else
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 79b1bc74..692ab16f 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -711,7 +711,7 @@ int arm7_9_execute_sys_speed(struct target_s *target)
if ((buf_get_u32(dbg_stat->value, EICE_DBG_STATUS_DBGACK, 1))
&& (buf_get_u32(dbg_stat->value, EICE_DBG_STATUS_SYSCOMP, 1)))
break;
- if (debug_level>=3)
+ if (debug_level >= 3)
{
alive_sleep(100);
} else
@@ -1159,7 +1159,7 @@ int arm7_9_soft_reset_halt(struct target_s *target)
embeddedice_read_reg(dbg_stat);
if ((retval=jtag_execute_queue()) != ERROR_OK)
return retval;
- if (debug_level>=3)
+ if (debug_level >= 3)
{
alive_sleep(100);
} else
diff --git a/src/target/arm920t.c b/src/target/arm920t.c
index 91107a5e..bf099e9d 100644
--- a/src/target/arm920t.c
+++ b/src/target/arm920t.c
@@ -587,7 +587,7 @@ int arm920t_soft_reset_halt(struct target_s *target)
{
break;
}
- if (debug_level>=3)
+ if (debug_level >= 3)
{
/* do not eat all CPU, time out after 1 se*/
alive_sleep(100);
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index d53fc273..5ffdeaff 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -587,7 +587,7 @@ int arm926ejs_soft_reset_halt(struct target_s *target)
{
break;
}
- if (debug_level>=1)
+ if (debug_level >= 1)
{
/* do not eat all CPU, time out after 1 se*/
alive_sleep(100);
diff --git a/src/target/etm.h b/src/target/etm.h
index 22e24ec9..14dda4fc 100644
--- a/src/target/etm.h
+++ b/src/target/etm.h
@@ -184,7 +184,7 @@ typedef enum
BR_ENABLE = 0x1, /* Trace has been enabled */
BR_RESTART = 0x2, /* Trace restarted after a FIFO overflow */
BR_NODEBUG = 0x3, /* ARM has exited for debug state */
- BR_PERIOD = 0x4, /* Peridioc synchronization point (ETM>=v1.2)*/
+ BR_PERIOD = 0x4, /* Peridioc synchronization point (ETM >= v1.2)*/
BR_RSVD5 = 0x5, /* reserved */
BR_RSVD6 = 0x6, /* reserved */
BR_RSVD7 = 0x7, /* reserved */
diff --git a/src/target/target.c b/src/target/target.c
index 781847fc..b7685966 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2279,7 +2279,7 @@ static int handle_load_image_command(struct command_context_s *cmd_ctx, char *cm
/* DANGER!!! beware of unsigned comparision here!!! */
- if ((image.sections[i].base_address+buf_cnt>=min_address)&&
+ if ((image.sections[i].base_address+buf_cnt >= min_address)&&
(image.sections[i].base_address<max_address))
{
if (image.sections[i].base_address<min_address)
@@ -2955,7 +2955,7 @@ static int handle_profile_command(struct command_context_s *cmd_ctx, char *cmd,
}
gettimeofday(&now, NULL);
- if ((numSamples>=maxSample) || ((now.tv_sec >= timeout.tv_sec) && (now.tv_usec >= timeout.tv_usec)))
+ if ((numSamples >= maxSample) || ((now.tv_sec >= timeout.tv_sec) && (now.tv_usec >= timeout.tv_usec)))
{
command_print(cmd_ctx, "Profiling completed. %d samples.", numSamples);
if ((retval = target_poll(target)) != ERROR_OK)
@@ -4460,7 +4460,7 @@ static int handle_fast_load_image_command(struct command_context_s *cmd_ctx, cha
/* DANGER!!! beware of unsigned comparision here!!! */
- if ((image.sections[i].base_address+buf_cnt>=min_address)&&
+ if ((image.sections[i].base_address+buf_cnt >= min_address)&&
(image.sections[i].base_address<max_address))
{
if (image.sections[i].base_address<min_address)
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 7de1d844..71d365dd 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -499,7 +499,7 @@ int xscale_read_tx(target_t *target, int consume)
{
goto done;
}
- if (debug_level>=3)
+ if (debug_level >= 3)
{
LOG_DEBUG("waiting 100ms");
alive_sleep(100); /* avoid flooding the logs */
@@ -580,7 +580,7 @@ int xscale_write_rx(target_t *target)
}
if (!(field0_in & 1))
goto done;
- if (debug_level>=3)
+ if (debug_level >= 3)
{
LOG_DEBUG("waiting 100ms");
alive_sleep(100); /* avoid flooding the logs */