Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5391282pxb; Sun, 13 Feb 2022 19:42:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtgdssZVeIsTzcMpSfKdCwVU8mSnGj0W/3JA8uJkvdm/FuIGLZYJnU/s0A43BGkZVuZoBb X-Received: by 2002:a17:90b:2342:: with SMTP id ms2mr12453495pjb.109.1644810160659; Sun, 13 Feb 2022 19:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644810160; cv=none; d=google.com; s=arc-20160816; b=ptA3siP0XyLIYHmgy6dDHJcanbu+2Fh6W6tSth+oWwxdPiBGJvQiQeZn4Wbh/w9lUi x9/5tR2vSjqjbUKKdkkqB1j/lE/bKWxp79hHRESYzNkmUadchOoXLVZmoKjgbjPN+5yY EzD34u0ogj6SkplhLKnurrwXAwY704MNb0kUqNaPqkdBGWFRFcjP8pXjhioBykD5ZH1q bPiqGmTtIy6yl3Vm+uWVMZy2+Ei9DdO2cL3ksWSklQOl32CBNd1/1lLSJwYz+2AQ/EuN rebP6q1FG/C/TwwV1Vzk2p2X4imU/9YEvYZLEUfDznaDbEP9WIB4MRnbJisuEF8GG3LI k9lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MTNJInD5cCrBQ/9sASyjRIFAVOyYwNxXUE7X5gWlT0M=; b=d9M4cG21auz8PXjPhyzZ+bdYQDLvXgQM0FEUnu1qa9bdqMmWvfKa0vtMSpq60FDlsE wMADJ3ylUc2VaunyJ4NRBk6dZ2UoTLBQ+JHfr9nDKr5wr19FmjFB8X5DoW+VI9ZpdOqG BenlrE0HwCLFm43BBl4pc1L++VC62zk6rEcrbrxpzDJVtiMbiptSm6bwvJc3QnLuvhcu jOPfZrZmJXXdJz9IfSgeb3FCB8ww10V+GSkltLoVoDNkLSSWEV/08oQfTnzwO1fPBpTi HMtw+8kk46Xa5eZii8RNoSmTdy4Ioj7BfTFp10tNqr7ZbaUBJ1WW1PxWBtJ85eetiXcw LcbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4si1549871plg.411.2022.02.13.19.42.24; Sun, 13 Feb 2022 19:42:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235593AbiBLN2A (ORCPT + 99 others); Sat, 12 Feb 2022 08:28:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiBLN2A (ORCPT ); Sat, 12 Feb 2022 08:28:00 -0500 Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A6BC22B15 for ; Sat, 12 Feb 2022 05:27:55 -0800 (PST) Received: from localhost.localdomain ([124.33.176.97]) by smtp.orange.fr with ESMTPA id IsR7niVP1u3WEIsRKn94XY; Sat, 12 Feb 2022 14:27:53 +0100 X-ME-Helo: localhost.localdomain X-ME-Auth: MDU0YmViZGZmMDIzYiBlMiM2NTczNTRjNWZkZTMwOGRiOGQ4ODf3NWI1ZTMyMzdiODlhOQ== X-ME-Date: Sat, 12 Feb 2022 14:27:53 +0100 X-ME-IP: 124.33.176.97 From: Vincent Mailhol To: netdev@vger.kernel.org, David Ahern , Stephen Hemminger , linux-can@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Marc Kleine-Budde , Vincent Mailhol Subject: [PATCH iproute2] iplink_can: print_usage: typo fix, add missing spaces Date: Sat, 12 Feb 2022 22:27:27 +0900 Message-Id: <20220212132727.3710-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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