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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
debug.h
include/wine/debug.h
+19
-10
No files found.
include/wine/debug.h
View file @
65ad7fcd
...
@@ -210,6 +210,24 @@ static inline int __wine_dbg_cdecl wine_dbg_printf( const char *format, ... )
...
@@ -210,6 +210,24 @@ static inline int __wine_dbg_cdecl wine_dbg_printf( const char *format, ... )
return
ret
;
return
ret
;
}
}
static
int
__wine_dbg_cdecl
wine_dbg_vlog
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
func
,
const
char
*
format
,
va_list
args
)
__WINE_PRINTF_ATTR
(
4
,
0
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_vlog
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
function
,
const
char
*
format
,
va_list
args
)
{
int
ret
;
if
(
*
format
==
'\1'
)
/* special magic to avoid standard prefix */
{
format
++
;
function
=
NULL
;
}
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
,
static
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
struct
__wine_debug_channel
*
channel
,
const
char
*
func
,
struct
__wine_debug_channel
*
channel
,
const
char
*
func
,
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
4
,
5
);
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
4
,
5
);
...
@@ -217,21 +235,12 @@ static inline int __wine_dbg_cdecl wine_dbg_log( enum __wine_debug_class cls,
...
@@ -217,21 +235,12 @@ static inline int __wine_dbg_cdecl wine_dbg_log( enum __wine_debug_class cls,
struct
__wine_debug_channel
*
channel
,
struct
__wine_debug_channel
*
channel
,
const
char
*
function
,
const
char
*
format
,
...
)
const
char
*
function
,
const
char
*
format
,
...
)
{
{
char
buffer
[
1024
];
va_list
args
;
va_list
args
;
int
ret
;
int
ret
;
if
(
*
format
==
'\1'
)
/* special magic to avoid standard prefix */
{
format
++
;
function
=
NULL
;
}
if
((
ret
=
__wine_dbg_header
(
cls
,
channel
,
function
))
==
-
1
)
return
ret
;
va_start
(
args
,
format
);
va_start
(
args
,
format
);
vsnprintf
(
buffer
,
sizeof
(
buffer
)
,
format
,
args
);
ret
=
wine_dbg_vlog
(
cls
,
channel
,
function
,
format
,
args
);
va_end
(
args
);
va_end
(
args
);
ret
+=
__wine_dbg_output
(
buffer
);
return
ret
;
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