diff --git a/canplayer.c b/canplayer.c index 7932f7a..8f84f13 100644 --- a/canplayer.c +++ b/canplayer.c @@ -77,8 +77,10 @@ extern int optind, opterr, optopt; void print_usage(char *prg) { + fprintf(stderr, "%s - replay a compact CAN frame logfile to CAN devices.\n", prg); fprintf(stderr, "\nUsage: %s [interface assignment]*\n\n", prg); - fprintf(stderr, "Options: -I (default stdin)\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, " -I (default stdin)\n"); fprintf(stderr, " -l " "(process input file times)\n" " " @@ -93,13 +95,13 @@ void print_usage(char *prg) "loopback of sent CAN frames)\n"); fprintf(stderr, " -v (verbose: print " "sent CAN frames)\n\n"); - fprintf(stderr, "Interface assignment: 0..n assignments like " - "=\n"); - fprintf(stderr, "e.g. vcan2=can0 ( send frames received from can0 on " - "vcan2 )\n"); - fprintf(stderr, "extra hook: stdout=can0 ( print logfile line marked with can0 on " - "stdout )\n"); - fprintf(stderr, "No assignments => send frames to the interface(s) they " + fprintf(stderr, "Interface assignment:\n"); + fprintf(stderr, " 0..n assignments like =\n\n"); + fprintf(stderr, " e.g. vcan2=can0 (send frames received from can0 on " + "vcan2)\n"); + fprintf(stderr, " extra hook: stdout=can0 (print logfile line marked with can0 on " + "stdout)\n"); + fprintf(stderr, " No assignments => send frames to the interface(s) they " "had been received from.\n\n"); fprintf(stderr, "Lines in the logfile not beginning with '(' (start of " "timestamp) are ignored.\n\n");