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
65ad7fcd
Commit
65ad7fcd
authored
Sep 01, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add a va_list version of the wine_dbg_log function.
parent
3fdc28c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
debug.h
include/wine/debug.h
+18
-9
No files found.
include/wine/debug.h
View file @
65ad7fcd
...
...
@@ -210,15 +210,13 @@ static inline int __wine_dbg_cdecl wine_dbg_printf( const char *format, ... )
return
ret
;
}
static
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
static
int
__wine_dbg_cdecl
wine_dbg_
v
log
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
func
,
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
4
,
5
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
const
char
*
format
,
va_list
args
)
__WINE_PRINTF_ATTR
(
4
,
0
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_
v
log
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
function
,
const
char
*
format
,
...
)
const
char
*
function
,
const
char
*
format
,
va_list
args
)
{
char
buffer
[
1024
];
va_list
args
;
int
ret
;
if
(
*
format
==
'\1'
)
/* special magic to avoid standard prefix */
...
...
@@ -226,12 +224,23 @@ static inline int __wine_dbg_cdecl wine_dbg_log( enum __wine_debug_class cls,
format
++
;
function
=
NULL
;
}
if
((
ret
=
__wine_dbg_header
(
cls
,
channel
,
function
))
==
-
1
)
return
ret
;
if
((
ret
=
__wine_dbg_header
(
cls
,
channel
,
function
))
!=
-
1
)
ret
+=
wine_dbg_vprintf
(
format
,
args
);
return
ret
;
}
static
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
func
,
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
4
,
5
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
function
,
const
char
*
format
,
...
)
{
va_list
args
;
int
ret
;
va_start
(
args
,
format
);
vsnprintf
(
buffer
,
sizeof
(
buffer
)
,
format
,
args
);
ret
=
wine_dbg_vlog
(
cls
,
channel
,
function
,
format
,
args
);
va_end
(
args
);
ret
+=
__wine_dbg_output
(
buffer
);
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