From d9a76d8f860c4ee19c4aa0df685889d058f4c5cb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 15 May 2010 17:23:35 +0200 Subject: [PATCH] mount: don't negate errno when passing it to strerror() --- mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.c b/mount.c index b53c7c0d8..2b24ea5c8 100644 --- a/mount.c +++ b/mount.c @@ -1360,7 +1360,7 @@ void mount_fd_event(Manager *m, int events) { * table changes */ if ((r = mount_load_proc_self_mountinfo(m, true)) < 0) { - log_error("Failed to reread /proc/self/mountinfo: %s", strerror(-errno)); + log_error("Failed to reread /proc/self/mountinfo: %s", strerror(errno)); /* Reset flags, just in case, for later calls */ LIST_FOREACH(units_per_type, meta, m->units_per_type[UNIT_MOUNT]) { -- 2.30.2