Whamcloud - gitweb
EX-6102 lipe: lipe_scan3 not intended for customer use
authorAlexandre Ioffe <aioffe@ddn.com>
Tue, 25 Oct 2022 03:06:08 +0000 (20:06 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 27 Oct 2022 03:21:27 +0000 (03:21 +0000)
Print warning lipe_scan3 is not intended for customer use

Signed-off-by: Alexandre Ioffe <aioffe@ddn.com>
Test-Parameters: trivial
Change-Id: I92f775d77e1d4ffac304d3e46ed6af7c642a3bdd
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48939
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lipe_scan3/ls3_main.c

index 3994c35..7424018 100644 (file)
@@ -1063,13 +1063,21 @@ SCM_DEFINE(ls3_scm_scan_continue, "lipe-scan-continue", 0, 0, 0, (),
 }
 #undef FUNC_NAME
 
+#define HELP_WARNING                                           \
+       "*** WARNING: %s is not intended for customer use. "    \
+       "Use lipe_find3 instead.\n"
+
 #define USAGE()                                                                \
-       TRY_HELP("Usage: %s [OPTION]... [--print-*|--script=SCRIPT] DEVICE...\n", \
-                program_invocation_short_name)
+       TRY_HELP(HELP_WARNING                                           \
+                "\n"                                                   \
+                "Usage: %s [OPTION]... [--print-*|--script=SCRIPT] DEVICE...\n", \
+                program_invocation_short_name, program_invocation_short_name)
 
 static void help(void)
 {
        printf(
+HELP_WARNING
+"\n"
 "Usage: %s [OPTION]... [--print-*|--script=SCRIPT] DEVICE...\n"
 "Scan DEVICE... ... and something, something ... scheme  ... to stdout.\n"
 "Exactly one of the following options must be used:\n"
@@ -1104,7 +1112,7 @@ static void help(void)
 "  -v, --version               output version information and exit\n"
 /* TODO --delim=DELIM */
 ,
-program_invocation_short_name);
+program_invocation_short_name, program_invocation_short_name);
 }
 
 enum {