Enable stderr debugging by default
authorDaniel Stone <daniel@fooishbar.org>
Wed, 15 Feb 2012 16:24:07 +0000 (16:24 +0000)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 15 Feb 2012 16:24:51 +0000 (16:24 +0000)
(If debugFlags is set to non-zero.)

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/utils.c

index 2309857..d9914cd 100644 (file)
@@ -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);