Print this page
4178 lofiadm usage message for the -a option is bogus
Reviewed by: Garrett D'Amore <garrett@damore.org>

@@ -64,13 +64,18 @@
 #include <aes/aes_impl.h>
 #include <des/des_impl.h>
 #include <blowfish/blowfish_impl.h>
 
 static const char USAGE[] =
-        "Usage: %s [-r] -a file [ device ] "
-        " [-c aes-128-cbc|aes-192-cbc|aes-256-cbc|des3-cbc|blowfish-cbc]"
-        " [-e] [-k keyfile] [-T [token]:[manuf]:[serial]:key]\n"
+        "Usage: %s [-r] -a file [ device ]\n"
+        "       %s [-r] -c crypto_algorithm -a file [device]\n"
+        "       %s [-r] -c crypto_algorithm -k raw_key_file -a file [device]\n"
+        "       %s [-r] -c crypto_algorithm -T [token]:[manuf]:[serial]:key "
+        "-a file [device]\n"
+        "       %s [-r] -c crypto_algorithm -T [token]:[manuf]:[serial]:key "
+        "-k wrapped_key_file -a file [device]\n"
+        "       %s [-r] -c crypto_algorithm -e -a file [device]\n"
         "       %s -d file | device\n"
         "       %s -C [gzip|gzip-6|gzip-9|lzma] [-s segment_size] file\n"
         "       %s -U file\n"
         "       %s [ file | device ]\n";
 

@@ -149,11 +154,11 @@
 
 static void
 usage(const char *pname)
 {
         (void) fprintf(stderr, gettext(USAGE), pname, pname, pname,
-            pname, pname);
+            pname, pname, pname, pname, pname, pname, pname);
         exit(E_USAGE);
 }
 
 static int
 gzip_compress(void *src, size_t srclen, void *dst, size_t *dstlen, int level)