Bugfix about stats cast in cc plugin
diff --git a/coverage-tool/coverage-plugin/coverage_trace.cc b/coverage-tool/coverage-plugin/coverage_trace.cc
index d2b13fd..24a81fb 100644
--- a/coverage-tool/coverage-plugin/coverage_trace.cc
+++ b/coverage-tool/coverage-plugin/coverage_trace.cc
@@ -307,8 +307,9 @@
// Dump the detailed stats
for (map_it = rtc->stats.begin(); map_it != rtc->stats.end();
++map_it) {
- fprintf(fp, "%08x %lu %lu\n", map_it->first, map_it->second.cnt,
- map_it->second.size);
+ fprintf(fp, "%08x %lu %lu\n", (unsigned int)map_it->first,
+ (unsigned long)map_it->second.cnt,
+ (unsigned long)map_it->second.size);
}
// Close the file