Merge "Fix printf formatting"
authorAdrian Grange <agrange@google.com>
Thu, 16 Jan 2014 19:02:55 +0000 (11:02 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 16 Jan 2014 19:02:55 +0000 (11:02 -0800)
1  2 
vp9/encoder/vp9_onyx_if.c

@@@ -2603,17 -2619,18 +2603,19 @@@ static void output_frame_level_debug_st
    recon_err = vp9_calc_ss_err(cpi->Source, get_frame_new_buffer(cm));
  
    if (cpi->twopass.total_left_stats.coded_error != 0.0)
-     fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %10d"
-         "%7.2f %7.2f %7.2f %7.2f %7.2f %7.2f"
-         "%6d %6d %5d %5d %5d %10d %10.3f"
-         "%10.3f %8d %10d %10d %10d\n",
+     fprintf(f, "%10u %10d %10d %10d %10d %10d "
+         "%10"PRId64" %10"PRId64" %10d "
+         "%7.2lf %7.2lf %7.2lf %7.2lf %7.2lf %7.2lf"
+         "%6d %6d %5d %5d %5d "
+         "%10"PRId64" %10.3lf"
+         "%10lf %8u %10d %10d %10d\n",
          cpi->common.current_video_frame, cpi->rc.this_frame_target,
 -        cpi->rc.projected_frame_size, 0,
 +        cpi->rc.projected_frame_size,
 +        cpi->rc.projected_frame_size / cpi->common.MBs,
          (cpi->rc.projected_frame_size - cpi->rc.this_frame_target),
-         (int)cpi->rc.total_target_vs_actual,
-         (int)(cpi->oxcf.starting_buffer_level - cpi->rc.bits_off_target),
-         (int)cpi->rc.total_actual_bits, cm->base_qindex,
+         cpi->rc.total_target_vs_actual,
+         (cpi->oxcf.starting_buffer_level - cpi->rc.bits_off_target),
+         cpi->rc.total_actual_bits, cm->base_qindex,
          vp9_convert_qindex_to_q(cm->base_qindex),
          (double)vp9_dc_quant(cm->base_qindex, 0) / 4.0,
          vp9_convert_qindex_to_q(cpi->rc.active_worst_quality), cpi->rc.avg_q,