diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-10-19 13:49:23 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-19 13:49:23 -0400 |
commit | 4c84892cead59e568a83172e441a15713ae162ab (patch) | |
tree | ae6b2fd6074927856e009cd361f14bd399c873ed | |
parent | 2e526dabcf4b15fb102e295b282df3af54d5c9d3 (diff) | |
download | systemtap-steved-4c84892cead59e568a83172e441a15713ae162ab.tar.gz systemtap-steved-4c84892cead59e568a83172e441a15713ae162ab.tar.xz systemtap-steved-4c84892cead59e568a83172e441a15713ae162ab.zip |
fix 32-bit compatibility for @hist_log printing
* stat-common.c (_stp_stat_print_histogram_buf): Fix HIST_PRINTF
parameter passing.
-rw-r--r-- | runtime/stat-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |