From 55d91044637e2e72c2d023e01e79b2c252231697 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Nov 2010 12:15:41 +0000 Subject: [PATCH] Use one fprintf call for usage print Replace multiple fprintf calls with multiline one. --- daemons/dmeventd/dmeventd.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index 967212827..3f015bdc5 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[]) -- 2.43.5