Fix warning in output.c where __u64 is a long, not a long long
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Mon, 5 Mar 2007 17:20:37 +0000 (18:20 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 5 Mar 2007 17:20:37 +0000 (18:20 +0100)
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
btt/output.c

index 1c80dfebfd3f0e8a1bcc38bed2a34543c74c734b..1278434f004000fa822c1d3bf8d7e72925108ee3 100644 (file)
@@ -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);
 }