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'. --- libao2/ao_sgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libao2') diff --git a/libao2/ao_sgi.c b/libao2/ao_sgi.c index 71ce784657..0973f302ab 100644 --- a/libao2/ao_sgi.c +++ b/libao2/ao_sgi.c @@ -174,7 +174,7 @@ static int init(int rate, int channels, int format, int flags) { realrate = alFixedToDouble(x[0].value.ll); if (frate != realrate) { - mp_tmsg(MSGT_AO, MSGL_INFO, "[AO SGI] init: samplerate is now %lf (desired rate is %lf)\n", realrate, frate); + mp_tmsg(MSGT_AO, MSGL_INFO, "[AO SGI] init: samplerate is now %f (desired rate is %f)\n", realrate, frate); } sample_rate = (int)realrate; } -- cgit v1.2.3