]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iplink_can: print_usage: typo fix, add missing spaces
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Sat, 12 Feb 2022 13:27:27 +0000 (22:27 +0900)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 16 Feb 2022 20:12:42 +0000 (12:12 -0800)
The can help menu misses three spaces for the TDCV, TDCO and TDCF
parameters, making the closing curly bracket unaligned.

For reference, before this patch:

| $ ip link help can
| Usage: ip link set DEVICE type can
|  [ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
|  [ tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1
|     phase-seg2 PHASE-SEG2 [ sjw SJW ] ]
|
|  [ dbitrate BITRATE [ dsample-point SAMPLE-POINT] ] |
|  [ dtq TQ dprop-seg PROP_SEG dphase-seg1 PHASE-SEG1
|     dphase-seg2 PHASE-SEG2 [ dsjw SJW ] ]
|  [ tdcv TDCV tdco TDCO tdcf TDCF ]
|
|  [ loopback { on | off } ]
|  [ listen-only { on | off } ]
|  [ triple-sampling { on | off } ]
|  [ one-shot { on | off } ]
|  [ berr-reporting { on | off } ]
|  [ fd { on | off } ]
|  [ fd-non-iso { on | off } ]
|  [ presume-ack { on | off } ]
|  [ cc-len8-dlc { on | off } ]
|  [ tdc-mode { auto | manual | off } ]
|
|  [ restart-ms TIME-MS ]
|  [ restart ]
|
|  [ termination { 0..65535 } ]
|
|  Where: BITRATE := { NUMBER in bps }
|    SAMPLE-POINT := { 0.000..0.999 }
|    TQ := { NUMBER in ns }
|    PROP-SEG := { NUMBER in tq }
|    PHASE-SEG1 := { NUMBER in tq }
|    PHASE-SEG2 := { NUMBER in tq }
|    SJW := { NUMBER in tq }
|    TDCV := { NUMBER in tc}
|    TDCO := { NUMBER in tc}
|    TDCF := { NUMBER in tc}
|    RESTART-MS := { 0 | NUMBER in ms }

... and after this patch:

| $ ip link help can
| Usage: ip link set DEVICE type can
|  [ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
|  [ tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1
|     phase-seg2 PHASE-SEG2 [ sjw SJW ] ]
|
|  [ dbitrate BITRATE [ dsample-point SAMPLE-POINT] ] |
|  [ dtq TQ dprop-seg PROP_SEG dphase-seg1 PHASE-SEG1
|     dphase-seg2 PHASE-SEG2 [ dsjw SJW ] ]
|  [ tdcv TDCV tdco TDCO tdcf TDCF ]
|
|  [ loopback { on | off } ]
|  [ listen-only { on | off } ]
|  [ triple-sampling { on | off } ]
|  [ one-shot { on | off } ]
|  [ berr-reporting { on | off } ]
|  [ fd { on | off } ]
|  [ fd-non-iso { on | off } ]
|  [ presume-ack { on | off } ]
|  [ cc-len8-dlc { on | off } ]
|  [ tdc-mode { auto | manual | off } ]
|
|  [ restart-ms TIME-MS ]
|  [ restart ]
|
|  [ termination { 0..65535 } ]
|
|  Where: BITRATE := { NUMBER in bps }
|    SAMPLE-POINT := { 0.000..0.999 }
|    TQ := { NUMBER in ns }
|    PROP-SEG := { NUMBER in tq }
|    PHASE-SEG1 := { NUMBER in tq }
|    PHASE-SEG2 := { NUMBER in tq }
|    SJW := { NUMBER in tq }
|    TDCV := { NUMBER in tc }
|    TDCO := { NUMBER in tc }
|    TDCF := { NUMBER in tc }
|    RESTART-MS := { 0 | NUMBER in ms }

Fixes: 0c263d7c36ff ("iplink_can: add new CAN FD bittiming parameters:
Transmitter Delay Compensat ion (TDC)")
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_can.c

index 854ccc314e2bd57ed0411ed57b4f5b4e3a7d9dc6..a885ba16cb80c4c7356999ac979aedd712be0e32 100644 (file)
@@ -53,9 +53,9 @@ static void print_usage(FILE *f)
                "\t       PHASE-SEG1    := { NUMBER in tq }\n"
                "\t       PHASE-SEG2    := { NUMBER in tq }\n"
                "\t       SJW           := { NUMBER in tq }\n"
-               "\t       TDCV          := { NUMBER in tc}\n"
-               "\t       TDCO          := { NUMBER in tc}\n"
-               "\t       TDCF          := { NUMBER in tc}\n"
+               "\t       TDCV          := { NUMBER in tc }\n"
+               "\t       TDCO          := { NUMBER in tc }\n"
+               "\t       TDCF          := { NUMBER in tc }\n"
                "\t       RESTART-MS    := { 0 | NUMBER in ms }\n"
                );
 }