From 24d8136bce8e5131fb9bf3a5669a2c138643ebde Mon Sep 17 00:00:00 2001 From: jbrjake Date: Mon, 6 Aug 2007 21:05:50 +0000 Subject: [PATCH] Display thread IDs in hb_log messages with %x instead of %d, so they aren't negative numbers in 32-bit Ubuntu (and maybe other places). Thanks for the suggestion, mr_cheese_. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@788 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/ports.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libhb/ports.c b/libhb/ports.c index bdeadc1f8..18304d17f 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -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 ); -- 2.40.0