From 67c874d76dc3cc54d9b6d2d2fad9c1ccbebc9bff Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 15 Feb 2012 16:24:07 +0000 Subject: [PATCH] Enable stderr debugging by default (If debugFlags is set to non-zero.) Signed-off-by: Daniel Stone --- src/xkbcomp/utils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/xkbcomp/utils.c b/src/xkbcomp/utils.c index 2309857..d9914cd 100644 --- a/src/xkbcomp/utils.c +++ b/src/xkbcomp/utils.c @@ -79,7 +79,7 @@ uInformation(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; va_start(args, s); vfprintf(errorFile, s, args); @@ -95,7 +95,7 @@ uAction(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; if (prefix != NULL) fprintf(errorFile, "%s", prefix); @@ -114,7 +114,7 @@ uWarning(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; if ((outCount == 0) && (preMsg != NULL)) fprintf(errorFile, "%s\n", preMsg); @@ -136,7 +136,7 @@ uError(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; if ((outCount == 0) && (preMsg != NULL)) fprintf(errorFile, "%s\n", preMsg); @@ -158,7 +158,7 @@ uFatalError(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; if ((outCount == 0) && (preMsg != NULL)) fprintf(errorFile, "%s\n", preMsg); @@ -183,7 +183,7 @@ uInternalError(const char *s, ...) va_list args; if (!errorFile) - return; + errorFile = stderr; if ((outCount == 0) && (preMsg != NULL)) fprintf(errorFile, "%s\n", preMsg); -- 2.7.4