From 4db63e4b55a06157cc0a0cb74e7cc84656012e62 Mon Sep 17 00:00:00 2001 From: Alexander Gerasiov Date: Sun, 11 Feb 2018 19:03:05 +0300 Subject: [PATCH] isotpperf.c: Reformat help/usage output to be compatible with help2man. Signed-off-by: Alexander Gerasiov Gbp-Pq: Name 0013-isotpperf.c-Reformat-help-usage-output-to-be-compati.patch --- isotpperf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/isotpperf.c b/isotpperf.c index 5ad302a..f65bb85 100644 --- a/isotpperf.c +++ b/isotpperf.c @@ -65,11 +65,13 @@ void print_usage(char *prg) { + fprintf(stderr, "%s - ISO15765-2 protocol performance visualisation.\n", prg); fprintf(stderr, "\nUsage: %s [options] \n", prg); - fprintf(stderr, "Options: -s (source can_id. Use 8 digits for extended IDs)\n"); - fprintf(stderr, " -d (destination can_id. Use 8 digits for extended IDs)\n"); - fprintf(stderr, " -x (extended addressing mode)\n"); - fprintf(stderr, " -X (extended addressing mode (rx addr))\n"); + fprintf(stderr, "Options:\n"); + fprintf(stderr, " -s (source can_id. Use 8 digits for extended IDs)\n"); + fprintf(stderr, " -d (destination can_id. Use 8 digits for extended IDs)\n"); + fprintf(stderr, " -x (extended addressing mode)\n"); + fprintf(stderr, " -X (extended addressing mode (rx addr))\n"); fprintf(stderr, "\nCAN IDs and addresses are given and expected in hexadecimal values.\n"); fprintf(stderr, "\n"); }