diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-03-24 17:26:37 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-03-24 17:55:36 +0100 |
commit | 663b4ab8243e56052d72217427bc935b3de2e9de (patch) | |
tree | d7de027f9cac1e752dd3aae8d93b6828639e16a5 /winsup/cygserver/process.h | |
parent | 4dbcfeb7d0c388eba837d5b055f669a85d057442 (diff) | |
download | cygnal-663b4ab8243e56052d72217427bc935b3de2e9de.tar.gz cygnal-663b4ab8243e56052d72217427bc935b3de2e9de.tar.bz2 cygnal-663b4ab8243e56052d72217427bc935b3de2e9de.zip |
cygserver: Speed up non-debug scenario
_log/_vlog were always called so we always had a function call hit even
if we're not debugging. Expand on the debugging macros so the decision
to call _log/_vlog is done in the caller already. Also, make a log level
difference between syscall_printf and system_printf.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygserver/process.h')
-rw-r--r-- | winsup/cygserver/process.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygserver/process.h b/winsup/cygserver/process.h index 282586e8d..a084fb12d 100644 --- a/winsup/cygserver/process.h +++ b/winsup/cygserver/process.h @@ -82,12 +82,12 @@ public: bool is_active () const { return _exit_status == STILL_ACTIVE; } void _hold (const char *file, int line) { - _log (file, line, LOG_DEBUG, "Try hold(%lu)", _cygpid); + _debug (file, line, "Try hold(%lu)", _cygpid); EnterCriticalSection (&_access); - _log (file, line, LOG_DEBUG, "holding (%lu)", _cygpid); + _debug (file, line, "holding (%lu)", _cygpid); } void _release (const char *file, int line) { - _log (file, line, LOG_DEBUG, "leaving (%lu)", _cygpid); + _debug (file, line, "leaving (%lu)", _cygpid); LeaveCriticalSection (&_access); } |