diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:09:35 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:09:35 +0000 |
commit | 3c2eabd20f5182c53f0bfb0c6f2a9f2595434e87 (patch) | |
tree | 0da04be2583bc38b8771216eef38d0d0b1fb3ac9 /src/target/trace.c | |
parent | db7e77237c5a8104b527aeb23a2546b4bab92d8a (diff) |
Transform 'u32' to 'uint32_t' in src/target
- Replace '\([^_]\)u32' with '\1uint32_t'.
- Replace '^u32' with 'uint32_t'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2279 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/trace.c')
-rw-r--r-- | src/target/trace.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/trace.c b/src/target/trace.c index 59489fe4..79bb5990 100644 --- a/src/target/trace.c +++ b/src/target/trace.c @@ -25,7 +25,7 @@ #include "trace.h" #include "target.h" -int trace_point(target_t *target, u32 number) +int trace_point(target_t *target, uint32_t number) { trace_t *trace = target->trace_info; @@ -54,7 +54,7 @@ static int handle_trace_point_command(struct command_context_s *cmd_ctx, char *c if (argc == 0) { - u32 i; + uint32_t i; for (i = 0; i < trace->num_trace_points; i++) { @@ -113,15 +113,15 @@ static int handle_trace_history_command(struct command_context_s *cmd_ctx, char free(trace->trace_history); trace->trace_history_size = strtoul(args[0], NULL, 0); - trace->trace_history = malloc(sizeof(u32) * trace->trace_history_size); + trace->trace_history = malloc(sizeof(uint32_t) * trace->trace_history_size); command_print(cmd_ctx, "new trace history size: %i", trace->trace_history_size); } else { - u32 i; - u32 first = 0; - u32 last = trace->trace_history_pos; + uint32_t i; + uint32_t first = 0; + uint32_t last = trace->trace_history_pos; if ( !trace->trace_history_size ) { command_print(cmd_ctx, "trace history buffer is not allocated"); @@ -137,7 +137,7 @@ static int handle_trace_history_command(struct command_context_s *cmd_ctx, char { if (trace->trace_history[i % trace->trace_history_size] < trace->num_trace_points) { - u32 address; + uint32_t address; address = trace->trace_points[trace->trace_history[i % trace->trace_history_size]].address; command_print(cmd_ctx, "trace point %i: 0x%8.8x", trace->trace_history[i % trace->trace_history_size], |