kits/app: fix DBG in Looper
* adjust format string for thread id * fix variable name loop vs looper Change-Id: I3d1924d6ab98981b4b2a3f56689872e35e5bea77 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5562 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
93dfc938f1
commit
c633f83a45
@@ -38,7 +38,7 @@
|
||||
// debugging
|
||||
//#define DBG(x) x
|
||||
#define DBG(x) ;
|
||||
#define PRINT(x) DBG({ printf("[%6ld] ", find_thread(NULL)); printf x; })
|
||||
#define PRINT(x) DBG({ printf("[%6" B_PRId32 "] ", find_thread(NULL)); printf x; })
|
||||
|
||||
/*
|
||||
#include <Autolock.h>
|
||||
@@ -958,7 +958,7 @@ BLooper::_Lock(BLooper* looper, port_id port, bigtime_t timeout)
|
||||
// Check for nested lock attempt
|
||||
if (currentThread == looper->fOwner) {
|
||||
++looper->fOwnerCount;
|
||||
PRINT(("BLooper::_Lock() done 5: fOwnerCount: %ld\n", loop->fOwnerCount));
|
||||
PRINT(("BLooper::_Lock() done 5: fOwnerCount: %ld\n", looper->fOwnerCount));
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user