From bed546d187d3beba64d488aa917d2530fc038d47 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 19 Mar 2025 10:06:10 +0100 Subject: [PATCH] veritysetup-generator: repeat format string arguments a bit less --- src/veritysetup/veritysetup-generator.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.47.3