summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-10-19 13:49:23 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-19 13:49:23 -0400
commit4c84892cead59e568a83172e441a15713ae162ab (patch)
treeae6b2fd6074927856e009cd361f14bd399c873ed
parent2e526dabcf4b15fb102e295b282df3af54d5c9d3 (diff)
downloadsystemtap-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.c2
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