linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] iplink_can: print_usage: typo fix, add missing spaces
@ 2022-02-12 13:27 Vincent Mailhol
  2022-02-12 16:04 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Mailhol @ 2022-02-12 13:27 UTC (permalink / raw)
  To: netdev, David Ahern, Stephen Hemminger, linux-can
  Cc: linux-kernel, Marc Kleine-Budde, Vincent Mailhol

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>
---
 ip/iplink_can.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ip/iplink_can.c b/ip/iplink_can.c
index 6ea02a2a..0e670a6c 100644
--- a/ip/iplink_can.c
+++ b/ip/iplink_can.c
@@ -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"
 		);
 }
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2] iplink_can: print_usage: typo fix, add missing spaces
  2022-02-12 13:27 [PATCH iproute2] iplink_can: print_usage: typo fix, add missing spaces Vincent Mailhol
@ 2022-02-12 16:04 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2022-02-12 16:04 UTC (permalink / raw)
  To: Vincent Mailhol
  Cc: netdev, David Ahern, Stephen Hemminger, linux-can, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3374 bytes --]

On 12.02.2022 22:27:27, Vincent Mailhol wrote:
> 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>

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-12 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12 13:27 [PATCH iproute2] iplink_can: print_usage: typo fix, add missing spaces Vincent Mailhol
2022-02-12 16:04 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).