]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
veritysetup-generator: repeat format string arguments a bit less 36802/head
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2025 09:06:10 +0000 (10:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2025 15:32:02 +0000 (16:32 +0100)
src/veritysetup/veritysetup-generator.c

index 95f1d52fefb8243f4a3132601ac13715145df927..6335775d437771bf35bcf1fe54f9c2fd0f776c1c 100644 (file)
@@ -102,9 +102,8 @@ static int create_special_device(
 
         fprintf(f,
                 "Before=veritysetup.target\n"
-                "BindsTo=%s %s\n"
-                "After=%s %s\n",
-                d, e,
+                "BindsTo=%1$s %2$s\n"
+                "After=%1$s %2$s\n",
                 d, e);
 
         r = generator_write_veritysetup_service_section(f, name, u, v, roothash, options);
@@ -222,7 +221,6 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
                 r = free_and_strdup(&arg_usr_options, value);
                 if (r < 0)
                         return log_oom();
-
         }
 
         return 0;