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>
This commit is contained in:
@@ -50,5 +50,5 @@ extern int cygserver_running;
|
||||
} while (false)
|
||||
|
||||
#define debug_printf(f,...) debug((f),##__VA_ARGS__)
|
||||
#define syscall_printf(f,...) log(LOG_ERR,(f),##__VA_ARGS__)
|
||||
#define syscall_printf(f,...) log(LOG_INFO,(f),##__VA_ARGS__)
|
||||
#define system_printf(f,...) log(LOG_ERR,(f),##__VA_ARGS__)
|
||||
|
Reference in New Issue
Block a user