GUI: Clarify "debuglevel" command output in Debugger base class.
This should make it clear that -1 is used for disable.
This commit is contained in:
parent
e065b24d56
commit
bac58f3e18
1 changed files with 3 additions and 7 deletions
|
@ -503,12 +503,8 @@ bool Debugger::Cmd_OpenLog(int argc, const char **argv) {
|
||||||
|
|
||||||
|
|
||||||
bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
|
bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
|
||||||
if (argc == 1) {
|
if (argc == 1) { // print level
|
||||||
if (gDebugLevel < 0) {
|
DebugPrintf("Debugging is currently %s (set at level %d)\n", (gDebugLevel >= 0) ? "enabled" : "disabled", gDebugLevel);
|
||||||
DebugPrintf("Debugging is disabled\n");
|
|
||||||
} else {
|
|
||||||
DebugPrintf("Debugging is currently set at level %d\n", gDebugLevel);
|
|
||||||
}
|
|
||||||
} else { // set level
|
} else { // set level
|
||||||
gDebugLevel = atoi(argv[1]);
|
gDebugLevel = atoi(argv[1]);
|
||||||
if (gDebugLevel >= 0 && gDebugLevel < 11) {
|
if (gDebugLevel >= 0 && gDebugLevel < 11) {
|
||||||
|
@ -516,7 +512,7 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
|
||||||
} else if (gDebugLevel < 0) {
|
} else if (gDebugLevel < 0) {
|
||||||
DebugPrintf("Debugging is now disabled\n");
|
DebugPrintf("Debugging is now disabled\n");
|
||||||
} else {
|
} else {
|
||||||
DebugPrintf("Not a valid debug level (0 - 10)\n");
|
DebugPrintf("Invalid debug level value (0 to 10 or -1 to disable)\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue