]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iplink_can: print_usage: fix the text indentation
authorVincent Mailhol <mailhol@kernel.org>
Wed, 3 Dec 2025 18:24:28 +0000 (19:24 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 7 Dec 2025 17:38:56 +0000 (09:38 -0800)
The description of the BITRATE variable is not correctly aligned with the
other ones. Put it on a new line with the same indentation as the other
variables.

This done, reindent everything to only one tabulation (was one tabulation
and two spaces before).

Before this patch...:

  $ ip link help can
  Usage: ip link set DEVICE type can

  (...)

   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:

  $ ip link help can
  Usage: ip link set DEVICE type can

  (...)

   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 }

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
ip/iplink_can.c

index 1afdf08825f3d9cbbb0454592d2ed7dc1388a6de..f3640fe02e49ab68d3d87b7656dc57d06916818e 100644 (file)
@@ -48,17 +48,18 @@ static void print_usage(FILE *f)
                "\n"
                "\t[ termination { 0..65535 } ]\n"
                "\n"
-               "\tWhere: BITRATE       := { NUMBER in bps }\n"
-               "\t       SAMPLE-POINT  := { 0.000..0.999 }\n"
-               "\t       TQ            := { NUMBER in ns }\n"
-               "\t       PROP-SEG      := { NUMBER in tq }\n"
-               "\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       RESTART-MS    := { 0 | NUMBER in ms }\n"
+               "\tWhere:\n"
+               "\t     BITRATE         := { NUMBER in bps }\n"
+               "\t     SAMPLE-POINT    := { 0.000..0.999 }\n"
+               "\t     TQ              := { NUMBER in ns }\n"
+               "\t     PROP-SEG        := { NUMBER in tq }\n"
+               "\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     RESTART-MS      := { 0 | NUMBER in ms }\n"
                );
 }