From: Alan D. Brunelle Date: Mon, 5 Mar 2007 17:20:37 +0000 (+0100) Subject: Fix warning in output.c where __u64 is a long, not a long long X-Git-Tag: blktrace-0.99.3~22 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=37d40cb2de1bd35e278004490eabd99867978d12;p=blktrace.git Fix warning in output.c where __u64 is a long, not a long long Signed-off-by: Alan D. Brunelle Signed-off-by: Jens Axboe --- diff --git a/btt/output.c b/btt/output.c index 1c80dfe..1278434 100644 --- a/btt/output.c +++ b/btt/output.c @@ -504,7 +504,7 @@ void output_histos(void) for (i = 0; i < (N_HIST_BKTS-1); i++) fprintf(ofp, "%4d %lld\n", (i+1), (long long)q_histo[i]); fprintf(ofp, "\n# Q bucket for > %d\n%4d %lld\n", (int)N_HIST_BKTS-1, - N_HIST_BKTS-1, q_histo[N_HIST_BKTS-1]); + N_HIST_BKTS-1, (long long)q_histo[N_HIST_BKTS-1]); fclose(ofp); sprintf(fname, "%s_dhist.dat", output_name); @@ -517,7 +517,7 @@ void output_histos(void) for (i = 0; i < (N_HIST_BKTS-1); i++) fprintf(ofp, "%4d %lld\n", (i+1), (long long)d_histo[i]); fprintf(ofp, "\n# D bucket for > %d\n%4d %lld\n", (int)N_HIST_BKTS-1, - N_HIST_BKTS-1, d_histo[N_HIST_BKTS-1]); + N_HIST_BKTS-1, (long long)d_histo[N_HIST_BKTS-1]); fclose(ofp); }