threads / patch / 198

patchMissing linefeeds

Subject: [PATCH] Missing linefeeds

## tl;dr

3 messages between Apr 21, 2005 and Apr 21, 2005. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Matthias Urlichs· Apr 21, 2005, 12:44 UTC · lore
This patch fixes die() and error() to print linefeeds after the message.
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>

--- 42a073eb6b5bb397a3e8768a032463a7fa02e6b9/usage.c (mode:100644 sha1:e774d2ef32726af0707d817cdb63fc8751ddc9d8) +++ 265515f9c4f089b1b61e9d2312c4b3babe189618/usage.c (mode:100644 sha1:21715d88b1a82aa06a3914e3f0e69fb1b61cc442)

Show changes to diff +2 −0
@@ -26,6 +26,7 @@
 	va_start(params, err);
 	report("fatal: ", err, params);
 	va_end(params);
+	fputs("\n", stderr);
 	exit(1);
 }
 
@@ -36,5 +37,6 @@
 	va_start(params, err);
 	report("error: ", err, params);
 	va_end(params);
+	fputs("\n", stderr);
 	return -1;
 }
Petr Baudis· Apr 21, 2005, 16:26 UTC · re: Matthias Urlichs · lore

Re: [PATCH] Missing linefeeds

Dear diary, on Thu, Apr 21, 2005 at 02:44:30PM CEST, I got a letter where Matthias Urlichs <smurf@smurf.noris.de> told me that...

> This patch fixes die() and error() to print linefeeds after the message.
Why? report() already prints linefeed.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

← back to recent threads