chiark / gitweb /
treewide: no need to negate errno for log_*_errno()
[elogind.git] / src / udev / net / link-config.c
index 97e260baed5fd4dc4d47b25482eb562142815ca4..7d1bdc9ee739e1b03236fff7f1721556d29ab917 100644 (file)
@@ -175,7 +175,7 @@ static bool enable_name_policy(void) {
 
         r = proc_cmdline(&line);
         if (r < 0) {
-                log_warning_errno(-r, "Failed to read /proc/cmdline, ignoring: %m");
+                log_warning_errno(r, "Failed to read /proc/cmdline, ignoring: %m");
                 return true;
         }
 
@@ -203,7 +203,7 @@ int link_config_load(link_config_ctx *ctx) {
 
         r = conf_files_list_strv(&files, ".link", NULL, link_dirs);
         if (r < 0) {
-                log_error_errno(-r, "failed to enumerate link files: %m");
+                log_error_errno(r, "failed to enumerate link files: %m");
                 return r;
         }