Commit bca6b23c authored by Christophe Massiot's avatar Christophe Massiot

* src/misc/threads.c: thread_id is in fact an _unsigned_ int.

parent 6bd81eee
...@@ -610,8 +610,8 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line, ...@@ -610,8 +610,8 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
p_this->b_thread = 1; p_this->b_thread = 1;
msg_Dbg( p_this, "thread %d (%s) created at priority %d (%s:%d)", msg_Dbg( p_this, "thread %u (%s) created at priority %d (%s:%d)",
(int)p_this->thread_id, psz_name, i_priority, (unsigned int)p_this->thread_id, psz_name, i_priority,
psz_file, i_line ); psz_file, i_line );
vlc_mutex_unlock( &p_this->object_lock ); vlc_mutex_unlock( &p_this->object_lock );
...@@ -724,18 +724,18 @@ void __vlc_thread_join( vlc_object_t *p_this, char * psz_file, int i_line ) ...@@ -724,18 +724,18 @@ void __vlc_thread_join( vlc_object_t *p_this, char * psz_file, int i_line )
if( i_ret ) if( i_ret )
{ {
#ifdef HAVE_STRERROR #ifdef HAVE_STRERROR
msg_Err( p_this, "thread_join(%d) failed at %s:%d (%s)", msg_Err( p_this, "thread_join(%u) failed at %s:%d (%s)",
(int)p_this->thread_id, psz_file, i_line, (unsigned int)p_this->thread_id, psz_file, i_line,
strerror(i_ret) ); strerror(i_ret) );
#else #else
msg_Err( p_this, "thread_join(%d) failed at %s:%d", msg_Err( p_this, "thread_join(%u) failed at %s:%d",
(int)p_this->thread_id, psz_file, i_line ); (unsigned int)p_this->thread_id, psz_file, i_line );
#endif #endif
} }
else else
{ {
msg_Dbg( p_this, "thread %d joined (%s:%d)", msg_Dbg( p_this, "thread %u joined (%s:%d)",
(int)p_this->thread_id, psz_file, i_line ); (unsigned int)p_this->thread_id, psz_file, i_line );
} }
p_this->b_thread = 0; p_this->b_thread = 0;
......
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