summaryrefslogtreecommitdiffstats
path: root/src/udev/v4l_id
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-30 15:13:04 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-31 05:14:02 +0100
commitbc556335b1c568c98688cc1f586b5f753fcddac6 (patch)
tree2f9336fb6ea885d672e8c0e23300a448a554ce02 /src/udev/v4l_id
parentman: fix small issue in AllowedMemoryNodes description (diff)
downloadsystemd-bc556335b1c568c98688cc1f586b5f753fcddac6.tar.xz
systemd-bc556335b1c568c98688cc1f586b5f753fcddac6.zip
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
Diffstat (limited to 'src/udev/v4l_id')
-rw-r--r--src/udev/v4l_id/v4l_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/v4l_id/v4l_id.c b/src/udev/v4l_id/v4l_id.c
index 932446b766..26b634ef5b 100644
--- a/src/udev/v4l_id/v4l_id.c
+++ b/src/udev/v4l_id/v4l_id.c
@@ -45,8 +45,8 @@ int main(int argc, char *argv[]) {
case 'h':
printf("%s [-h,--help] <device file>\n\n"
"Video4Linux device identification.\n\n"
- " -h Print this message\n"
- , program_invocation_short_name);
+ " -h Print this message\n",
+ program_invocation_short_name);
return 0;
case '?':
return -EINVAL;