From b740fb7fab97a6dfba330e54390adfc5393c1833 Mon Sep 17 00:00:00 2001 From: Alexander Gerasiov Date: Sun, 11 Feb 2018 19:03:05 +0300 Subject: [PATCH] asc2log.c: Reformat help/usage output to be compatible with help2man. Signed-off-by: Alexander Gerasiov Gbp-Pq: Name 0001-asc2log.c-Reformat-help-usage-output-to-be-compatibl.patch --- asc2log.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/asc2log.c b/asc2log.c index 59f2f98..cecaa9f 100644 --- a/asc2log.c +++ b/asc2log.c @@ -61,9 +61,11 @@ extern int optind, opterr, optopt; void print_usage(char *prg) { + fprintf(stderr, "%s - convert ASC logfile to compact CAN frame logfile.\n", prg); fprintf(stderr, "Usage: %s\n", prg); - fprintf(stderr, "Options: -I (default stdin)\n"); - fprintf(stderr, " -O (default stdout)\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, "\t-I \t(default stdin)\n"); + fprintf(stderr, "\t-O \t(default stdout)\n"); } void prframe(FILE *file, struct timeval *tv, int dev, struct can_frame *cf) {