summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-08-06 21:05:50 +0000
committerjbrjake <[email protected]>2007-08-06 21:05:50 +0000
commit24d8136bce8e5131fb9bf3a5669a2c138643ebde (patch)
tree3a600b2c6d29b4fa0c9a0c2e3b90bb4b51710f68 /libhb
parent183781712959423ed001f539918d8567e76cecc1 (diff)
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
Diffstat (limited to 'libhb')
-rw-r--r--libhb/ports.c6
1 files 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 );