+ /*
+ * Get debug string, in the following format:
+ * "debug=option1=XXX;option2=YYY;..."
+ * and translate it into the format:
+ * "OPTION1=XXX OPTION2=YYY ..."
+ */
+ Setting = strstr(CmdLine, "debug=");
+ if (Setting)
+ {
+ /* Check if there are more command-line parameters following */
+ Setting += sizeof("debug=") + sizeof(ANSI_NULL);
+ End = strstr(Setting, " ");
+ if (End)
+ Length = End - Setting;
+ else
+ Length = sizeof(DebugString);
+
+ /* Copy the debug string and upcase it */
+ strncpy(DebugString, Setting, Length);
+ DebugString[Length - 1] = ANSI_NULL;
+ _strupr(DebugString);
+
+ /* Replace all separators ';' by spaces */
+ Setting = DebugString;
+ while (*Setting)
+ {
+ if (*Setting == ';') *Setting = ' ';
+ Setting++;
+ }
+
+ CmdLineInfo.DebugString = DebugString;
+ }
+
+ /* Get timeout */