widl: remove '\n' from debug functions

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Jan 5 06:34:52 CST 2005


        Huw Davies <huw at codeweavers.com>
        Bring the debug functions into line with the rest of Wine by
        not appending a '\n'
-- 
Huw Davies
huw at codeweavers.com
Index: tools/widl/widl.c
===================================================================
RCS file: /home/wine/wine/tools/widl/widl.c,v
retrieving revision 1.19
diff -u -p -r1.19 widl.c
--- tools/widl/widl.c	27 Dec 2004 17:13:25 -0000	1.19
+++ tools/widl/widl.c	5 Jan 2005 12:31:55 -0000
@@ -222,7 +222,7 @@ int main(int argc,char *argv[])
   atexit(rm_tempfile);
   if (!no_preprocess)
   {
-    chat("Starting preprocess");
+    chat("Starting preprocess\n");
 
     if (!preprocess_only)
     {
Index: tools/widl/utils.c
===================================================================
RCS file: /home/wine/wine/tools/widl/utils.c,v
retrieving revision 1.4
diff -u -p -r1.4 utils.c
--- tools/widl/utils.c	18 Aug 2003 20:00:44 -0000	1.4
+++ tools/widl/utils.c	5 Jan 2005 12:31:55 -0000
@@ -93,7 +93,6 @@ void internal_error(const char *file, in
 	va_start(ap, s);
 	fprintf(stderr, "Internal error (please report) %s %d: ", file, line);
 	vfprintf(stderr, s, ap);
-	fprintf(stderr, "\n");
 	va_end(ap);
 	exit(3);
 }
@@ -102,9 +101,8 @@ void error(const char *s, ...)
 {
 	va_list ap;
 	va_start(ap, s);
-	fprintf(stderr, "Error: ");
+	fprintf(stderr, "error: ");
 	vfprintf(stderr, s, ap);
-	fprintf(stderr, "\n");
 	va_end(ap);
 	exit(2);
 }
@@ -113,9 +111,8 @@ void warning(const char *s, ...)
 {
 	va_list ap;
 	va_start(ap, s);
-	fprintf(stderr, "Warning: ");
+	fprintf(stderr, "warning: ");
 	vfprintf(stderr, s, ap);
-	fprintf(stderr, "\n");
 	va_end(ap);
 }
 
@@ -125,9 +122,8 @@ void chat(const char *s, ...)
 	{
 		va_list ap;
 		va_start(ap, s);
-		fprintf(stderr, "FYI: ");
+		fprintf(stderr, "chat: ");
 		vfprintf(stderr, s, ap);
-		fprintf(stderr, "\n");
 		va_end(ap);
 	}
 }



More information about the wine-patches mailing list