]> sourceware.org Git - systemtap.git/commitdiff
fix 32-bit compatibility for @hist_log printing
authorWenji Huang <wenji.huang@oracle.com>
Mon, 19 Oct 2009 17:49:23 +0000 (13:49 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Mon, 19 Oct 2009 17:49:23 +0000 (13:49 -0400)
* stat-common.c (_stp_stat_print_histogram_buf): Fix HIST_PRINTF
  parameter passing.

runtime/stat-common.c

index e6fd3a1108a532c22999f12739241475a182ef2e..7123dc8ed18da5898d1e4acb65d133acc0dc001f 100644 (file)
@@ -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
This page took 0.02903 seconds and 5 git commands to generate.