git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Missing linefeeds

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Apr 21, 2005, 12:44 UTC
Message-ID
<20050421124430.ACDC77F894@smurf.noris.de>
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)

@@ -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;
 }
Next: Petr Baudis
Message 1 of 3 in “Missing linefeeds”
  1. Missing linefeedsMatthias Urlichs, Apr 21, 2005
  2. Petr BaudisApr 21, 2005
  3. Matthias UrlichsApr 21, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.