[ros-bugs] [Bug 5806] New: base/shell/cmd reroute TRACE messages to cmd console

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sun Jan 2 13:29:19 UTC 2011


http://www.reactos.org/bugzilla/show_bug.cgi?id=5806

           Summary: base/shell/cmd   reroute TRACE messages to cmd console
           Product: ReactOS Apps (rosapps)
           Version: unspecified
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: Utilities
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: hans at atbas.org


Created an attachment (id=5592)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=5592)
modified files base/shell/cmd

Made a small adaption to redirect all TRACE output to the cmd console
You can control it by setting an environment variable.

example:
D:\Apps>dir
 Volume in drive D is Data
....
D:\Apps>set CMDTRACE=on

D:\Apps>dir
DoCommand: ('L"dir"' 'L""')
Attributes mask/value 6/0
(B) Bare format : 0
(C) Thousand : 1
(W) Wide list : 0
(D) Wide list sort by column : 0
(L) Lowercase : 0
(N) New : 1
(O) Order : 0
(P) Pause : 0
(Q) Owner : 0
(S) Recursive : 0
(T) Time field : 1
(X) Short names : 0
Parameter : L"*"
 Volume in drive D is Data
....


2 files are changed:
precomp.h:
  after #include <wine/debug.h>  where TRACE is being defined
  if CMD_TRACE_DYNAMIC is defined, redefine TRACE

set.c:
  defined a global BOOL for the current state and added a cmd_trace function
  Inside the function cmd_set it checks for the var CMDTRACE if it is being set
or unset and uses that for the current state
  Code is only included if CMD_TRACE_DYNAMIC is defined in  precomp.h 

Attached a zip file with the modified files (from the 3.12 version)


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Ros-bugs mailing list