chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / remount-fs / remount-fs.c
index cd7cfe7a474a3aa73405cb2179bbd0b2b2eea593..e30c3443100517ba49d775114e2d253bb3956835 100644 (file)
@@ -120,7 +120,7 @@ int main(int argc, char *argv[]) {
 
                 k = hashmap_put(pids, UINT_TO_PTR(pid), s);
                 if (k < 0) {
-                        log_error("Failed to add PID to set: %s", strerror(-k));
+                        log_error_errno(-k, "Failed to add PID to set: %m");
                         ret = EXIT_FAILURE;
                         continue;
                 }