Commit 9d78b230 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Format string fixes

parent d699c5c3
...@@ -146,6 +146,7 @@ struct intf_sys_t ...@@ -146,6 +146,7 @@ struct intf_sys_t
#define msg_rc( ... ) __msg_rc( p_intf, __VA_ARGS__ ) #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, ... ) static void __msg_rc( intf_thread_t *p_intf, const char *psz_fmt, ... )
{ {
va_list args; va_list args;
...@@ -728,7 +729,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -728,7 +729,7 @@ static void Run( intf_thread_t *p_intf )
{ {
vlc_value_t time; vlc_value_t time;
var_Get( p_input, "time", &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" ) ) else if( !strcmp( psz_cmd, "get_length" ) )
...@@ -741,14 +742,14 @@ static void Run( intf_thread_t *p_intf ) ...@@ -741,14 +742,14 @@ static void Run( intf_thread_t *p_intf )
{ {
vlc_value_t time; vlc_value_t time;
var_Get( p_input, "length", &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" ) ) else if( !strcmp( psz_cmd, "get_title" ) )
{ {
if( ! p_input ) if( ! p_input )
{ {
msg_rc(""); msg_rc("%s", "");
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment