From: Aaron Merey Date: Wed, 6 Apr 2022 17:38:04 +0000 (-0400) Subject: debuginfod: Include "IPv4 IPv6" in server startup message X-Git-Tag: elfutils-0.187~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83251d4091241acddbdcf16f814e3bc6ef3df49a;p=thirdparty%2Felfutils.git debuginfod: Include "IPv4 IPv6" in server startup message At startup debuginfod prints a message indicating the port which the server is listening to. Prior to commit 4e4082be03 this message would include "IPv4" and/or "IPv6" [...] (48671/48671): started http server on IPv4 IPv6 port=8002 As of commit 4e4082be03 the IP versions have been removed from this message. This change can cause issues in any applications that parse the message for this information. Fix this by adding "IPv4 IPv6" back to the message. Signed-off-by: Aaron Merey --- diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 054ae07a4..9c0217f6d 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -3929,7 +3929,7 @@ main (int argc, char *argv[]) error (EXIT_FAILURE, 0, "cannot start http server at port %d", http_port); } - obatched(clog) << "started http server on " + obatched(clog) << "started http server on IPv4 IPv6 " << "port=" << http_port << endl; // add maxigroom sql if -G given