]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: drop custom formatting for print() help messages
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 11 Mar 2024 12:34:34 +0000 (13:34 +0100)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 11 Mar 2024 12:34:34 +0000 (13:34 +0100)
Follow-up for bc556335b1c568c98688cc1f586b5f753fcddac6

src/creds/creds.c
src/shared/service-util.c
src/sysupdate/sysupdate.c

index 02e317ad2d5d3798b83b686dfbc206fa180621c9..4af5f287219a2dc7e945bc0d7f16b2585e171806 100644 (file)
@@ -742,12 +742,13 @@ static int verb_help(int argc, char **argv, void *userdata) {
                "     --user               Select user-scoped credential encryption\n"
                "     --uid=UID            Select user for scoped credentials\n"
                "  -q --quiet              Suppress output for 'has-tpm2' verb\n"
-               "\nSee the %2$s for details.\n"
-               , program_invocation_short_name
-               , link
-               , ansi_underline(), ansi_normal()
-               , ansi_highlight(), ansi_normal()
-        );
+               "\nSee the %2$s for details.\n",
+               program_invocation_short_name,
+               link,
+               ansi_underline(),
+               ansi_normal(),
+               ansi_highlight(),
+               ansi_normal());
 
         return 0;
 }
index b0585ba5467fa6125443ca3a3a9d52be4b829a70..a415d54084afc40a5d6384fbbb8a2067ae8f7bbe 100644 (file)
@@ -24,12 +24,14 @@ static int help(const char *program_path, const char *service, const char *descr
                "  -h --help                 Show this help\n"
                "     --version              Show package version\n"
                "     --bus-introspect=PATH  Write D-Bus XML introspection data\n"
-               "\nSee the %s for details.\n"
-               , program_path
-               , ansi_highlight(), description, ansi_normal()
-               , ansi_underline(), ansi_normal()
-               , link
-        );
+               "\nSee the %s for details.\n",
+               program_path,
+               ansi_highlight(),
+               description,
+               ansi_normal(),
+               ansi_underline(),
+               ansi_normal(),
+               link);
 
         return 0; /* No further action */
 }
index 2b88785e9fe484247a1cdfe1bd3d3150d3f63996..b55383ee39afff0a8457917acd1a90c31dcaef7f 100644 (file)
@@ -1221,12 +1221,13 @@ static int verb_help(int argc, char **argv, void *userdata) {
                "     --no-legend          Do not show the headers and footers\n"
                "     --json=pretty|short|off\n"
                "                          Generate JSON output\n"
-               "\nSee the %2$s for details.\n"
-               , program_invocation_short_name
-               , link
-               , ansi_underline(), ansi_normal()
-               , ansi_highlight(), ansi_normal()
-        );
+               "\nSee the %2$s for details.\n",
+               program_invocation_short_name,
+               link,
+               ansi_underline(),
+               ansi_normal(),
+               ansi_highlight(),
+               ansi_normal());
 
         return 0;
 }