From: Andrea Bolognani Date: Tue, 5 Feb 2019 14:54:55 +0000 (+0100) Subject: iohelper: Don't include newlines in error messages X-Git-Tag: v5.1.0-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4f3bbf2c53a45e315730405f69af32982477cf;p=thirdparty%2Flibvirt.git iohelper: Don't include newlines in error messages The newline was pretty arbitrary, and we're better off without it. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrangé Reviewed-by: John Ferlan --- diff --git a/src/util/iohelper.c b/src/util/iohelper.c index 1ff4a7b314..aed7ef3184 100644 --- a/src/util/iohelper.c +++ b/src/util/iohelper.c @@ -236,7 +236,7 @@ main(int argc, char **argv) return 0; error: - fprintf(stderr, _("%s: failure with %s\n: %s"), + fprintf(stderr, _("%s: failure with %s: %s"), program_name, path, virGetLastErrorMessage()); exit(EXIT_FAILURE); }