[vlc-devel] commit: Format string fixes ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 28 20:56:41 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 28 21:58:49 2008 +0300| [365e62610d070e3a1f45b8fc76cb10de16762daa] | committer: Rémi Denis-Courmont
Format string fixes
(cherry picked from commit 9d78b230fdf5deffe2a1b6749a8eb65dcfb6e0e4)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=365e62610d070e3a1f45b8fc76cb10de16762daa
---
modules/control/rc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 5e45c61..d2e41f6 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -146,6 +146,7 @@ struct intf_sys_t
#define msg_rc( ... ) __msg_rc( p_intf, __VA_ARGS__ )
+LIBVLC_FORMAT(2, 3)
static void __msg_rc( intf_thread_t *p_intf, const char *psz_fmt, ... )
{
va_list args;
@@ -729,7 +730,7 @@ static void Run( intf_thread_t *p_intf )
{
vlc_value_t time;
var_Get( p_input, "time", &time );
- msg_rc( "%i", time.i_time / 1000000);
+ msg_rc( "%"PRIu64, time.i_time / 1000000);
}
}
else if( !strcmp( psz_cmd, "get_length" ) )
@@ -742,14 +743,14 @@ static void Run( intf_thread_t *p_intf )
{
vlc_value_t time;
var_Get( p_input, "length", &time );
- msg_rc( "%i", time.i_time / 1000000);
+ msg_rc( "%"PRIu64, time.i_time / 1000000);
}
}
else if( !strcmp( psz_cmd, "get_title" ) )
{
if( ! p_input )
{
- msg_rc("");
+ msg_rc("%s", "");
}
else
{
More information about the vlc-devel
mailing list