chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / udev / net / link-config.c
index 5aefb7d415e4dc2fd4fcfe192502494b7c0d9fe0..97e260baed5fd4dc4d47b25482eb562142815ca4 100644 (file)
@@ -175,7 +175,7 @@ static bool enable_name_policy(void) {
 
         r = proc_cmdline(&line);
         if (r < 0) {
-                log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));
+                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("failed to enumerate link files: %s", strerror(-r));
+                log_error_errno(-r, "failed to enumerate link files: %m");
                 return r;
         }