From 1598302be65c77c107330dc46fd0dabface3112d Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 15 Dec 2009 15:27:30 +0200 Subject: Fix printf format strings with invalid '%lf' conversion Some code used an invalid '%lf' conversion specification for double arguments. Maybe they were written that way due to confusion with scanf where doubles are indicated by '%lf'; however it is not a valid printf format specifier. Change those cases to use '%f'. --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 3eca97982a..99387640a5 100644 --- a/command.c +++ b/command.c @@ -80,7 +80,7 @@ static void rescale_input_coordinates(struct MPContext *mpctx, int ix, int iy, *dy = (double) iy / (double) vo->dheight; mp_msg(MSGT_CPLAYER, MSGL_V, - "\r\nrescaled coordinates: %.3lf, %.3lf, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n", + "\r\nrescaled coordinates: %.3f, %.3f, screen (%d x %d), vodisplay: (%d, %d), fullscreen: %d\r\n", *dx, *dy, opts->vo_screenwidth, opts->vo_screenheight, vo->dwidth, vo->dheight, vo_fs); } @@ -3110,7 +3110,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) break; case MP_CMD_GET_TIME_LENGTH:{ - mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2lf\n", + mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_LENGTH=%.2f\n", demuxer_get_time_length(mpctx->demuxer)); } break; -- cgit v1.2.3