From eec76a74439c227bb0984e724617a132b855e21a Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Wed, 18 Nov 2020 15:07:33 +0100 Subject: [PATCH] cangw: Update help text to indicate len8_dlc support The can_dlc value that is passed to the kernel is not sanitized in cangw therefore we only update the help text. In the case that the CAN interface supports len8_dlc by setting CAN_CTRLMODE_CC_LEN8_DLC the can-gw module can modify the full DLC value range (0 .. 15) for Classic CAN frames. Signed-off-by: Oliver Hartkopp --- cangw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cangw.c b/cangw.c index 041a0a4..9bf9ecd 100644 --- a/cangw.c +++ b/cangw.c @@ -240,7 +240,7 @@ void print_usage(char *prg) fprintf(stderr, " -u (user defined modification identifier)\n"); fprintf(stderr, " -l (limit the number of frame hops / routings)\n"); fprintf(stderr, " -f (set CAN filter)\n"); - fprintf(stderr, " -m (set Classic CAN frame modifications)\n"); + fprintf(stderr, " -m (set Classical CAN frame modifications)\n"); fprintf(stderr, " -M (set CAN FD frame modifications)\n"); fprintf(stderr, " -x ::: (XOR checksum)\n"); fprintf(stderr, " -c ::::: (CRC8 cs)\n"); @@ -251,12 +251,12 @@ void print_usage(char *prg) fprintf(stderr, " : (matches when & mask == can_id & mask)\n"); fprintf(stderr, " ~ (matches when & mask != can_id & mask)\n"); fprintf(stderr, "\n"); - fprintf(stderr, " is a CAN frame modification instruction consisting of\n"); + fprintf(stderr, " is a Classical CAN frame modification instruction consisting of\n"); fprintf(stderr, "::..\n"); fprintf(stderr, " is one of 'AND' 'OR' 'XOR' 'SET'\n"); fprintf(stderr, " is _one_ or _more_ of 'I'dentifier 'L'ength 'D'ata\n"); fprintf(stderr, " is an u32 value containing the CAN Identifier\n"); - fprintf(stderr, " is an u8 value containing the data length code (0 .. 8)\n"); + fprintf(stderr, " is an u8 value containing the data length code (0 .. 15)\n"); fprintf(stderr, " is always eight(!) u8 values containing the CAN frames data\n"); fprintf(stderr, "\n"); fprintf(stderr, " is a CAN FD frame modification instruction consisting of\n");