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
e422a22e
Commit
e422a22e
authored
Mar 27, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Added tid debug channel support on native Windows builds.
parent
506b369c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
debug.c
libs/wine/debug.c
+8
-0
No files found.
libs/wine/debug.c
View file @
e422a22e
...
...
@@ -33,6 +33,10 @@
#include "wine/debug.h"
#include "wine/library.h"
#if defined(__MINGW32__) || defined(_MSC_VER)
WINE_DECLARE_DEBUG_CHANNEL
(
tid
);
#endif
static
const
char
*
const
debug_classes
[]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
#define MAX_DEBUG_OPTIONS 256
...
...
@@ -402,6 +406,10 @@ static int default_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_ch
{
int
ret
=
0
;
#if defined(__MINGW32__) || defined(_MSC_VER)
if
(
TRACE_ON
(
tid
))
ret
+=
wine_dbg_printf
(
"%04x:"
,
GetCurrentThreadId
()
);
#endif
if
(
cls
<
sizeof
(
debug_classes
)
/
sizeof
(
debug_classes
[
0
]))
ret
+=
wine_dbg_printf
(
"%s:%s:%s "
,
debug_classes
[
cls
],
channel
->
name
,
func
);
if
(
format
)
...
...
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