From d2a6eb4b1e10bee0ed971d77a6847d33992f4bba Mon Sep 17 00:00:00 2001 From: Adrian Grange <agrange@google.com> Date: Thu, 21 Apr 2011 15:45:57 -0700 Subject: [PATCH] Corrected format specifiers in debug print statements The arguments to these fprintfs are int not long int so the format specifier should be "%d" and not "%ld". This was writing garbage in the linux build. Change-Id: I3d2aa8a448d52e6dc08858d825bf394929b47cf3 --- vp8/encoder/onyx_if.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 92e0cbb193..4d2e58890e 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -4370,9 +4370,9 @@ static void encode_frame_to_data_rate vp8_clear_system_state(); //__asm emms; if (cpi->total_coded_error_left != 0.0) - fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %6ld %6ld" - "%6ld %6ld %6ld %5ld %5ld %5ld %8ld %8.2f %10d %10.3f" - "%10.3f %8ld\n", + fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %6d %6d" + "%6d %6d %6d %5d %5d %5d %8d %8.2f %10d %10.3f" + "%10.3f %8d\n", cpi->common.current_video_frame, cpi->this_frame_target, cpi->projected_frame_size, (cpi->projected_frame_size - cpi->this_frame_target), @@ -4389,9 +4389,9 @@ static void encode_frame_to_data_rate (double)cpi->bits_left / cpi->total_coded_error_left, cpi->tot_recode_hits); else - fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %6ld %6ld" - "%6ld %6ld %6ld %5ld %5ld %5ld %8ld %8.2f %10d %10.3f" - "%8ld\n", + fprintf(f, "%10d %10d %10d %10d %10d %10d %10d %10d %6d %6d" + "%6d %6d %6d %5d %5d %5d %8d %8.2f %10d %10.3f" + "%8d\n", cpi->common.current_video_frame, cpi->this_frame_target, cpi->projected_frame_size, (cpi->projected_frame_size - cpi->this_frame_target), -- GitLab