From bc556335b1c568c98688cc1f586b5f753fcddac6 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 30 Jan 2021 14:13:04 +0000 Subject: tree-wide: Drop custom formatting for print() help messages I think this formatting was originally used because it simplified adding new options to the help messages. However, these days, most tools their help message end with "\nSee the %s for details.\n" so the final line almost never has to be edited which eliminates the benefit of the custom formatting used for printf() help messages. Let's make things more consistent and use the same formatting for printf() help messages that we use everywhere else. Prompted by https://github.com/systemd/systemd/pull/18355#discussion_r567241580 --- src/machine-id-setup/machine-id-setup-main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/machine-id-setup') diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index c35da05ffc..6074b1b42e 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -35,10 +35,9 @@ static int help(void) { " --root=ROOT Filesystem root\n" " --commit Commit transient ID\n" " --print Print used machine ID\n" - "\nSee the %s for details.\n" - , program_invocation_short_name - , link - ); + "\nSee the %s for details.\n", + program_invocation_short_name, + link); return 0; } -- cgit v1.2.1