|
From: <zw...@ma...> - 2009-06-18 12:40:38
|
Author: zwelch
Date: 2009-06-18 12:40:33 +0200 (Thu, 18 Jun 2009)
New Revision: 2285
Modified:
trunk/src/target/trace.c
Log:
Cast 64-bit trace hit_counter to long long; fixes format warning.
What is the correct way to handle this?
Modified: trunk/src/target/trace.c
===================================================================
--- trunk/src/target/trace.c 2009-06-18 07:11:55 UTC (rev 2284)
+++ trunk/src/target/trace.c 2009-06-18 10:40:33 UTC (rev 2285)
@@ -60,7 +60,7 @@
{
command_print(cmd_ctx, "trace point 0x%8.8x (%lld times hit)",
trace->trace_points[i].address,
- trace->trace_points[i].hit_counter);
+ (long long)trace->trace_points[i].hit_counter);
}
return ERROR_OK;
|