chiark / gitweb /
core: do not use quotes around virt and arch
[elogind.git] / src / core / swap.c
index bb1398f688da5cb8f2cee76588b7e2e05a1584f3..6b1bdb5c1e49d283e43f8903becbb32c23d5e984 100644 (file)
@@ -724,8 +724,12 @@ static void swap_enter_activating(Swap *s) {
                                      NULL, &discard, NULL);
 
                 priority = s->parameters_fragment.priority;
-                if (priority < 0)
-                        fstab_find_pri(s->parameters_fragment.options, &priority);
+                if (priority < 0) {
+                        r = fstab_find_pri(s->parameters_fragment.options, &priority);
+                        if (r < 0)
+                                log_notice_errno(r, "Failed to parse swap priority \"%s\", ignoring: %m",
+                                                 s->parameters_fragment.options);
+                }
         }
 
         r = exec_command_set(s->control_command, "/sbin/swapon", NULL);