Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
949e065c
Commit
949e065c
authored
Mar 14, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only print the trace header when we are at the beginning of a new
line (suggested by Dimitrie O. Paun).
parent
1efa50e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
debugtools.c
dlls/ntdll/debugtools.c
+10
-5
No files found.
dlls/ntdll/debugtools.c
View file @
949e065c
...
...
@@ -303,13 +303,18 @@ static int NTDLL_dbg_vprintf( const char *format, va_list args )
static
int
NTDLL_dbg_vlog
(
unsigned
int
cls
,
const
char
*
channel
,
const
char
*
function
,
const
char
*
format
,
va_list
args
)
{
static
const
char
*
classes
[]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
static
const
char
*
const
classes
[]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
struct
debug_info
*
info
=
get_info
();
int
ret
=
0
;
if
(
TRACE_ON
(
tid
))
ret
=
wine_dbg_printf
(
"%04lx:"
,
NtCurrentTeb
()
->
tid
);
if
(
cls
<
sizeof
(
classes
)
/
sizeof
(
classes
[
0
]))
ret
+=
wine_dbg_printf
(
"%s:%s:%s "
,
classes
[
cls
],
channel
+
1
,
function
);
/* only print header if we are at the beginning of the line */
if
(
info
->
out_pos
==
info
->
output
||
info
->
out_pos
[
-
1
]
==
'\n'
)
{
if
(
TRACE_ON
(
tid
))
ret
=
wine_dbg_printf
(
"%04lx:"
,
NtCurrentTeb
()
->
tid
);
if
(
cls
<
sizeof
(
classes
)
/
sizeof
(
classes
[
0
]))
ret
+=
wine_dbg_printf
(
"%s:%s:%s "
,
classes
[
cls
],
channel
+
1
,
function
);
}
if
(
format
)
ret
+=
NTDLL_dbg_vprintf
(
format
,
args
);
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment