From 89c66aba5ff9712cdeeb94880e260b3a985625a8 Mon Sep 17 00:00:00 2001 From: Alexander Gerasiov Date: Sun, 11 Feb 2018 19:03:05 +0300 Subject: [PATCH] isotptun.c: Reformat help/usage output to be compatible with help2man. Signed-off-by: Alexander Gerasiov Gbp-Pq: Name 0018-isotptun.c-Reformat-help-usage-output-to-be-compatib.patch --- isotptun.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/isotptun.c b/isotptun.c index 2318f21..cb40ecc 100644 --- a/isotptun.c +++ b/isotptun.c @@ -102,23 +102,25 @@ void perror_syslog(const char *s) void print_usage(char *prg) { + fprintf(stderr, "%s - IP over CAN ISO-TP (ISO15765-2) tunnel / proof-of-concept.\n", prg); fprintf(stderr, "\nUsage: %s [options] \n\n", prg); fprintf(stderr, "This program creates a Linux tunnel netdevice 'ctunX' and transfers the\n"); fprintf(stderr, "ethernet frames inside ISO15765-2 (unreliable) datagrams on CAN.\n\n"); - 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, " -n (name of created IP netdevice. Default: '%s')\n", DEFAULT_NAME); - fprintf(stderr, " -x [:] (extended addressing / opt. separate rxaddr)\n"); - fprintf(stderr, " -L :: (link layer options for CAN FD)\n"); - fprintf(stderr, " -p [tx]:[rx] (set and enable tx/rx padding bytes)\n"); - fprintf(stderr, " -P (check rx padding for (l)ength (c)ontent (a)ll)\n"); - fprintf(stderr, " -t