From: Lennart Poettering Date: Wed, 19 Mar 2025 09:06:10 +0000 (+0100) Subject: veritysetup-generator: repeat format string arguments a bit less X-Git-Tag: v258-rc1~1046^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F36802%2Fhead;p=thirdparty%2Fsystemd.git veritysetup-generator: repeat format string arguments a bit less --- diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c index 95f1d52fefb..6335775d437 100644 --- a/src/veritysetup/veritysetup-generator.c +++ b/src/veritysetup/veritysetup-generator.c @@ -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;