From 663b4ab8243e56052d72217427bc935b3de2e9de Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 24 Mar 2017 17:26:37 +0100 Subject: 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 --- winsup/cygserver/bsd_log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygserver/bsd_log.cc') diff --git a/winsup/cygserver/bsd_log.cc b/winsup/cygserver/bsd_log.cc index 7c6dcb645..133aa46bc 100644 --- a/winsup/cygserver/bsd_log.cc +++ b/winsup/cygserver/bsd_log.cc @@ -93,7 +93,7 @@ _log (const char *file, int line, int level, const char *fmt, ...) void _vpanic (const char *file, int line, const char *fmt, va_list ap) { - _vlog (file, line, LOG_CRIT, fmt, ap); + _vlog (file, line, LOG_EMERG, fmt, ap); exit (1); } -- cgit v1.2.3