]> sourceware.org Git - lvm2.git/commitdiff
cleanup: use multiline string
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 18 Feb 2017 18:09:24 +0000 (19:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 19 Feb 2017 23:43:40 +0000 (00:43 +0100)
tools/lvmcmdline.c

index e7968734320fd3a3e483ea48494b058be075e43a..9fa8d94f5b05cfafba6c6b3a1cae7de7ebdbd4fc 100644 (file)
@@ -1684,30 +1684,30 @@ static void _usage_notes(void)
         * [ ] for optional, ... for repeatable, | for one of the following,
         * -- for an option name, lower case strings and digits for literals.
         */
-       log_print("Usage notes:");
-       log_print(". Variable parameters are: Number, String, PV, VG, LV, Tag.");
-       log_print(". Select indicates that a required positional parameter can");
-       log_print("  be omitted if the --select option is used.");
-       log_print(". --size Number can be replaced with --extents NumberExtents.");
-       log_print(". When --name is omitted from lvcreate, a new LV name is");
-       log_print("  generated with the \"lvol\" prefix and a unique numeric suffix.");
-       log_print(". The required VG parameter in lvcreate may be omitted when");
-       log_print("  the VG name is included in another option, e.g. --name VG/LV.");
-       log_print(". For required options listed in parentheses, e.g. (--A, --B),");
-       log_print("  any one is required, after which the others are optional.");
-       log_print(". The _new suffix indicates the VG or LV must not yet exist.");
-       log_print(". LV followed by _<type> indicates that an LV of the given type");
-       log_print("  is required.  (raid represents any raid<N> type.)");
-       log_print(". Input units are always treated as base two values, regardless of");
-       log_print("  unit capitalization, e.g. 'k' and 'K' both refer to 1024.");
-       log_print(". The default input unit is specified by letter, followed by |unit");
-       log_print("  which represents other possible input units: bBsSkKmMgGtTpPeE.");
-       log_print(". Output units can be specified with the --units option, for which");
-       log_print("  lower/upper case letters refer to base 2/10 values.");
-       log_print("  formats that are recognized, e.g. for compatibility.");
-       log_print(". See man pages for short option equivalents of long option names,");
-       log_print("  and for more detailed descriptions of variable parameters.");
-       log_print(" ");
+       log_print("Usage notes:\n"
+                 ". Variable parameters are: Number, String, PV, VG, LV, Tag.\n"
+                 ". Select indicates that a required positional parameter can\n"
+                 "  be omitted if the --select option is used.\n"
+                 ". --size Number can be replaced with --extents NumberExtents.\n"
+                 ". When --name is omitted from lvcreate, a new LV name is\n"
+                 "  generated with the \"lvol\" prefix and a unique numeric suffix.\n"
+                 ". The required VG parameter in lvcreate may be omitted when\n"
+                 "  the VG name is included in another option, e.g. --name VG/LV.\n"
+                 ". For required options listed in parentheses, e.g. (--A, --B),\n"
+                 "  any one is required, after which the others are optional.\n"
+                 ". The _new suffix indicates the VG or LV must not yet exist.\n"
+                 ". LV followed by _<type> indicates that an LV of the given type\n"
+                 "  is required.  (raid represents any raid<N> type.)\n"
+                 ". Input units are always treated as base two values, regardless of\n"
+                 "  unit capitalization, e.g. 'k' and 'K' both refer to 1024.\n"
+                 ". The default input unit is specified by letter, followed by |unit\n"
+                 "  which represents other possible input units: bBsSkKmMgGtTpPeE.\n"
+                 ". Output units can be specified with the --units option, for which\n"
+                 "  lower/upper case letters refer to base 2/10 values.\n"
+                 "  formats that are recognized, e.g. for compatibility.\n"
+                 ". See man pages for short option equivalents of long option names,\n"
+                 "  and for more detailed descriptions of variable parameters.\n"
+                 "  \n");
 }
 
 static int _usage(const char *name, int longhelp)
@@ -3285,6 +3285,6 @@ int lvm2_main(int argc, char **argv)
 
       out:
        lvm_fin(cmd);
+
        return lvm_return_code(ret);
 }
-
This page took 0.043249 seconds and 5 git commands to generate.