[vlc-devel] commit: Format string fixes ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 28 20:55:34 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 28 21:58:49 2008 +0300| [9d78b230fdf5deffe2a1b6749a8eb65dcfb6e0e4] | committer: Rémi Denis-Courmont
Format string fixes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d78b230fdf5deffe2a1b6749a8eb65dcfb6e0e4
---
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 b8f4e68..fd52996 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;
@@ -728,7 +729,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" ) )
@@ -741,14 +742,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