OSDN Git Service

Display thread IDs in hb_log messages with %x instead of %d, so they aren't negative...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 6 Aug 2007 21:05:50 +0000 (21:05 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 6 Aug 2007 21:05:50 +0000 (21:05 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@788 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/ports.c

index bdeadc1..18304d1 100644 (file)
@@ -267,7 +267,7 @@ static void hb_thread_func( void * _t )
     t->function( t->arg );
 
     /* Inform that the thread can be joined now */
-    hb_log( "thread %d exited (\"%s\")", t->thread, t->name );
+    hb_log( "thread %x exited (\"%s\")", t->thread, t->name );
     hb_lock( t->lock );
     t->exited = 1;
     hb_unlock( t->lock );
@@ -312,7 +312,7 @@ hb_thread_t * hb_thread_init( char * name, void (* function)(void *),
 //        SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL );
 #endif
 
-    hb_log( "thread %d started (\"%s\")", t->thread, t->name );
+    hb_log( "thread %x started (\"%s\")", t->thread, t->name );
     return t;
 }
 
@@ -337,7 +337,7 @@ void hb_thread_close( hb_thread_t ** _t )
 //    WaitForSingleObject( t->thread, INFINITE );
 #endif
     
-    hb_log( "thread %d joined (\"%s\")",
+    hb_log( "thread %x joined (\"%s\")",
             t->thread, t->name );
 
     hb_lock_close( &t->lock );