mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
[CMD] Support dynamic trace (#7093)
Based on Hans Harder's patch. Realize tracing cmd on console output. JIRA issue: CORE-6669 - Add FEATURE_DYNAMIC_TRACE feature. - Add CmdTrace function. - Re-define FIXME, ERR, WARN, and TRACE macros. - Check CMDTRACE environment variable. If it was "ON", then enable dynamic trace.
This commit is contained in:
parent
6c74e69d12
commit
3dcae2ce0c
5 changed files with 106 additions and 4 deletions
|
@ -175,6 +175,13 @@ INT cmd_set(LPTSTR param)
|
|||
}
|
||||
|
||||
*p++ = _T('\0');
|
||||
|
||||
#ifdef FEATURE_DYNAMIC_TRACE
|
||||
/* Check for dynamic TRACE ON/OFF */
|
||||
if (!_tcsicmp(param, _T("CMDTRACE")))
|
||||
g_bDynamicTrace = !_tcsicmp(p, _T("ON"));
|
||||
#endif
|
||||
|
||||
if (!SetEnvironmentVariable(param, *p ? p : NULL))
|
||||
{
|
||||
retval = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue