ntoskrnl/tests: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
747b97539b
commit
a1cbf24468
|
@ -110,7 +110,7 @@ static inline void winetest_set_location( const char* file, int line )
|
||||||
data->current_line=line;
|
data->current_line=line;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void kvprintf(const char *format, __ms_va_list ap)
|
static inline void kvprintf(const char *format, va_list ap)
|
||||||
{
|
{
|
||||||
struct tls_data *data = get_tls_data();
|
struct tls_data *data = get_tls_data();
|
||||||
IO_STATUS_BLOCK io;
|
IO_STATUS_BLOCK io;
|
||||||
|
@ -121,23 +121,23 @@ static inline void kvprintf(const char *format, __ms_va_list ap)
|
||||||
static inline void WINAPIV kprintf(const char *format, ...) __WINE_PRINTF_ATTR(1,2);
|
static inline void WINAPIV kprintf(const char *format, ...) __WINE_PRINTF_ATTR(1,2);
|
||||||
static inline void WINAPIV kprintf(const char *format, ...)
|
static inline void WINAPIV kprintf(const char *format, ...)
|
||||||
{
|
{
|
||||||
__ms_va_list valist;
|
va_list valist;
|
||||||
|
|
||||||
__ms_va_start(valist, format);
|
va_start(valist, format);
|
||||||
kvprintf(format, valist);
|
kvprintf(format, valist);
|
||||||
__ms_va_end(valist);
|
va_end(valist);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void WINAPIV winetest_printf( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
static inline void WINAPIV winetest_printf( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||||
static inline void WINAPIV winetest_printf( const char *msg, ... )
|
static inline void WINAPIV winetest_printf( const char *msg, ... )
|
||||||
{
|
{
|
||||||
struct tls_data *data = get_tls_data();
|
struct tls_data *data = get_tls_data();
|
||||||
__ms_va_list valist;
|
va_list valist;
|
||||||
|
|
||||||
kprintf( "%s:%d: ", data->current_file, data->current_line );
|
kprintf( "%s:%d: ", data->current_file, data->current_line );
|
||||||
__ms_va_start( valist, msg );
|
va_start( valist, msg );
|
||||||
kvprintf( msg, valist );
|
kvprintf( msg, valist );
|
||||||
__ms_va_end( valist );
|
va_end( valist );
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline NTSTATUS winetest_init(void)
|
static inline NTSTATUS winetest_init(void)
|
||||||
|
@ -244,7 +244,7 @@ static inline LONG winetest_add_line( void )
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int winetest_vok( int condition, const char *msg, __ms_va_list args )
|
static inline int winetest_vok( int condition, const char *msg, va_list args )
|
||||||
{
|
{
|
||||||
struct tls_data *data = get_tls_data();
|
struct tls_data *data = get_tls_data();
|
||||||
|
|
||||||
|
@ -296,13 +296,13 @@ static inline int winetest_vok( int condition, const char *msg, __ms_va_list arg
|
||||||
static inline void WINAPIV winetest_ok( int condition, const char *msg, ... ) __WINE_PRINTF_ATTR(2,3);
|
static inline void WINAPIV winetest_ok( int condition, const char *msg, ... ) __WINE_PRINTF_ATTR(2,3);
|
||||||
static inline void WINAPIV winetest_ok( int condition, const char *msg, ... )
|
static inline void WINAPIV winetest_ok( int condition, const char *msg, ... )
|
||||||
{
|
{
|
||||||
__ms_va_list args;
|
va_list args;
|
||||||
__ms_va_start(args, msg);
|
va_start(args, msg);
|
||||||
winetest_vok(condition, msg, args);
|
winetest_vok(condition, msg, args);
|
||||||
__ms_va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void winetest_vskip( const char *msg, __ms_va_list args )
|
static inline void winetest_vskip( const char *msg, va_list args )
|
||||||
{
|
{
|
||||||
if (winetest_add_line() < winetest_mute_threshold)
|
if (winetest_add_line() < winetest_mute_threshold)
|
||||||
{
|
{
|
||||||
|
@ -317,37 +317,37 @@ static inline void winetest_vskip( const char *msg, __ms_va_list args )
|
||||||
static inline void WINAPIV winetest_skip( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
static inline void WINAPIV winetest_skip( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||||
static inline void WINAPIV winetest_skip( const char *msg, ... )
|
static inline void WINAPIV winetest_skip( const char *msg, ... )
|
||||||
{
|
{
|
||||||
__ms_va_list args;
|
va_list args;
|
||||||
__ms_va_start(args, msg);
|
va_start(args, msg);
|
||||||
winetest_vskip(msg, args);
|
winetest_vskip(msg, args);
|
||||||
__ms_va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void WINAPIV winetest_win_skip( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
static inline void WINAPIV winetest_win_skip( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||||
static inline void WINAPIV winetest_win_skip( const char *msg, ... )
|
static inline void WINAPIV winetest_win_skip( const char *msg, ... )
|
||||||
{
|
{
|
||||||
__ms_va_list args;
|
va_list args;
|
||||||
__ms_va_start(args, msg);
|
va_start(args, msg);
|
||||||
if (!running_under_wine)
|
if (!running_under_wine)
|
||||||
winetest_vskip(msg, args);
|
winetest_vskip(msg, args);
|
||||||
else
|
else
|
||||||
winetest_vok(0, msg, args);
|
winetest_vok(0, msg, args);
|
||||||
__ms_va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void WINAPIV winetest_trace( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
static inline void WINAPIV winetest_trace( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||||
static inline void WINAPIV winetest_trace( const char *msg, ... )
|
static inline void WINAPIV winetest_trace( const char *msg, ... )
|
||||||
{
|
{
|
||||||
__ms_va_list args;
|
va_list args;
|
||||||
|
|
||||||
if (!winetest_debug)
|
if (!winetest_debug)
|
||||||
return;
|
return;
|
||||||
if (winetest_add_line() < winetest_mute_threshold)
|
if (winetest_add_line() < winetest_mute_threshold)
|
||||||
{
|
{
|
||||||
winetest_print_context( "" );
|
winetest_print_context( "" );
|
||||||
__ms_va_start(args, msg);
|
va_start(args, msg);
|
||||||
kvprintf( msg, args );
|
kvprintf( msg, args );
|
||||||
__ms_va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
InterlockedIncrement(&muted_traces);
|
InterlockedIncrement(&muted_traces);
|
||||||
|
@ -378,13 +378,13 @@ static inline void WINAPIV winetest_push_context( const char *fmt, ... ) __WINE_
|
||||||
static inline void WINAPIV winetest_push_context( const char *fmt, ... )
|
static inline void WINAPIV winetest_push_context( const char *fmt, ... )
|
||||||
{
|
{
|
||||||
struct tls_data *data = get_tls_data();
|
struct tls_data *data = get_tls_data();
|
||||||
__ms_va_list valist;
|
va_list valist;
|
||||||
|
|
||||||
if (data->context_count < ARRAY_SIZE(data->context))
|
if (data->context_count < ARRAY_SIZE(data->context))
|
||||||
{
|
{
|
||||||
__ms_va_start(valist, fmt);
|
va_start(valist, fmt);
|
||||||
vsnprintf( data->context[data->context_count], sizeof(data->context[data->context_count]), fmt, valist );
|
vsnprintf( data->context[data->context_count], sizeof(data->context[data->context_count]), fmt, valist );
|
||||||
__ms_va_end(valist);
|
va_end(valist);
|
||||||
data->context[data->context_count][sizeof(data->context[data->context_count]) - 1] = 0;
|
data->context[data->context_count][sizeof(data->context[data->context_count]) - 1] = 0;
|
||||||
}
|
}
|
||||||
++data->context_count;
|
++data->context_count;
|
||||||
|
|
Loading…
Reference in New Issue