From 4c84892cead59e568a83172e441a15713ae162ab Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 19 Oct 2009 13:49:23 -0400 Subject: fix 32-bit compatibility for @hist_log printing * stat-common.c (_stp_stat_print_histogram_buf): Fix HIST_PRINTF parameter passing. --- runtime/stat-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stat-common.c') diff --git a/runtime/stat-common.c b/runtime/stat-common.c index e6fd3a11..7123dc8e 100644 --- a/runtime/stat-common.c +++ b/runtime/stat-common.c @@ -270,7 +270,7 @@ static void _stp_stat_print_histogram_buf(char *buf, size_t size, Hist st, stat for (j = 0; j < v; ++j) HIST_PRINTF("@"); - HIST_PRINTF("%*lld\n", HIST_WIDTH - v + 1 + cnt_space, sd->histogram[i]); + HIST_PRINTF("%*lld\n", (int)(HIST_WIDTH - v + 1 + cnt_space), sd->histogram[i]); } HIST_PRINTF("\n"); #undef HIST_PRINTF -- cgit