summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-11-29 12:15:41 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-11-29 12:15:41 +0000
commit693ec4b404b012a5fbdc7e974387d2720f9ed924 (patch)
tree52ecd0ad5fdc09df153ec30f79f81faa2403995d /daemons/dmeventd
parentcbecd3cd116ed83c5e91cd6a26bf7bb0bb071be1 (diff)
downloadlvm2-693ec4b404b012a5fbdc7e974387d2720f9ed924.tar.gz
lvm2-693ec4b404b012a5fbdc7e974387d2720f9ed924.tar.xz
lvm2-693ec4b404b012a5fbdc7e974387d2720f9ed924.zip
Use one fprintf call for usage print
Replace multiple fprintf calls with multiline one.
Diffstat (limited to 'daemons/dmeventd')
-rw-r--r--daemons/dmeventd/dmeventd.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c
index 96721282..3f015bdc 100644
--- a/daemons/dmeventd/dmeventd.c
+++ b/daemons/dmeventd/dmeventd.c
@@ -1749,14 +1749,12 @@ static void restart(void)
static void usage(char *prog, FILE *file)
{
- fprintf(file, "Usage:\n");
- fprintf(file, "%s [-V] [-h] [-d] [-d] [-d] [-f]\n", prog);
- fprintf(file, "\n");
- fprintf(file, " -V Show version of dmeventd\n");
- fprintf(file, " -h Show this help information\n");
- fprintf(file, " -d Log debug messages to syslog (-d, -dd, -ddd)\n");
- fprintf(file, " -f Don't fork, run in the foreground\n");
- fprintf(file, "\n");
+ fprintf(file, "Usage:\n"
+ "%s [-V] [-h] [-d] [-d] [-d] [-f]\n\n"
+ " -V Show version of dmeventd\n"
+ " -h Show this help information\n"
+ " -d Log debug messages to syslog (-d, -dd, -ddd)\n"
+ " -f Don't fork, run in the foreground\n\n", prog);
}
int main(int argc, char *argv[])