File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -648,7 +648,8 @@ struct Usage : std::exception
648648{
649649 static constexpr WCHAR PROGNAME[] = L" chunkdisk" ;
650650
651- static constexpr WCHAR usage[] = L" "
651+ // limited to 1024 elements
652+ static constexpr WCHAR usage1[] = L" "
652653 " usage: %s OPTIONS\n "
653654 " \n "
654655 " options:\n "
@@ -661,7 +662,9 @@ struct Usage : std::exception
661662 " -M 0|1 Disable/enable support for moving chunks (deflt: disable)\n "
662663 " Chunks must be locked exclusively to be moved\n "
663664 " -t Number Number of threads (deflt: automatic)\n "
664- " -U GUID GUID as the serial number of the WinSpd disk (deflt: random)\n "
665+ " -U GUID GUID as the serial number of the WinSpd disk (deflt: random)" ;
666+
667+ static constexpr WCHAR usage2[] = L" "
665668 " -d -1 Debug flags\n "
666669 " -D DebugLogFile Debug log file; - for stderr\n "
667670 " -p \\\\ .\\ pipe\\ PipeName Listen on pipe; omit to use driver\n "
@@ -760,7 +763,8 @@ int wmain(int argc, wchar_t** argv)
760763 }
761764 catch (const Usage&)
762765 {
763- SpdLogErr (Usage::usage, Usage::PROGNAME);
766+ SpdLogErr (Usage::usage1, Usage::PROGNAME);
767+ SpdLogErr (Usage::usage2);
764768 return ERROR_INVALID_PARAMETER;
765769 }
766770
You can’t perform that action at this time.
0 commit comments