Demonstrate C99 PRIuN formatting specifiers in trace.c.
---
trace.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Demonstrate C99 PRIuN formatting specifiers in trace.c.
---
trace.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
======
only in patch2:
unchanged:
--- src/target/trace.c (revision 2292)
+++ src/target/trace.c (working copy)
@@ -58,9 +58,10 @@
for (i = 0; i < trace->num_trace_points; i++)
{
- command_print(cmd_ctx, "trace point 0x%8.8x (%lld times hit)",
+ command_print(cmd_ctx,
+ "trace point 0x%8.8" PRIx32 " (%" PRIu64 " times hit)",
trace->trace_points[i].address,
- (long long)trace->trace_points[i].hit_counter);
+ trace->trace_points[i].hit_counter);
}
return ERROR_OK;
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development