X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftrace.c;h=a9045c25eabd9f7350a74454c6f393cc2ba5ba06;hp=93925cd1a4827e5a2eba46b95adaf133f932fd7a;hb=40580e2d71ac56131a5da7e5f67a0b63450e4f24;hpb=7989000e0969c1ccf69acbc3ce649a020bc1ee66 diff --git a/src/target/trace.c b/src/target/trace.c index 93925cd1a4..a9045c25ea 100644 --- a/src/target/trace.c +++ b/src/target/trace.c @@ -31,7 +31,7 @@ #include #include -int trace_point(target_t *target, int number) +int trace_point(target_t *target, u32 number) { trace_t *trace = target->trace_info; @@ -60,7 +60,7 @@ int handle_trace_point_command(struct command_context_s *cmd_ctx, char *cmd, cha if (argc == 0) { - int i; + u32 i; for (i = 0; i < trace->num_trace_points; i++) { @@ -125,9 +125,9 @@ int handle_trace_history_command(struct command_context_s *cmd_ctx, char *cmd, c } else { - int i; - int first = 0; - int last = trace->trace_history_pos; + u32 i; + u32 first = 0; + u32 last = trace->trace_history_pos; if ( !trace->trace_history_size ) { command_print(cmd_ctx, "trace history buffer is not allocated");