From a6ece1a2aa19a6268335c87d4fdef20123dd04a5 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 24 Nov 2015 00:06:32 +0100 Subject: Imported Upstream version 1.0.8 --- src/nm-logging.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/nm-logging.c') diff --git a/src/nm-logging.c b/src/nm-logging.c index fa770344..b8433a25 100644 --- a/src/nm-logging.c +++ b/src/nm-logging.c @@ -381,8 +381,11 @@ _nm_log_impl (const char *file, return; /* Make sure that %m maps to the specified error */ - if (error != 0) + if (error != 0) { + if (error < 0) + error = -error; errno = error; + } va_start (args, fmt); msg = g_strdup_vprintf (fmt, args); -- cgit 1.3.0-6-gf8a5