Commit 9f363a69 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Build the Unix side without -DWINE_NO_LONG_TYPES.

parent 0adec25f
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -1457,8 +1456,8 @@ static NTSTATUS CDROM_RawRead(int fd, const RAW_READ_INFO* raw, void* buffer, DW ...@@ -1457,8 +1456,8 @@ static NTSTATUS CDROM_RawRead(int fd, const RAW_READ_INFO* raw, void* buffer, DW
dk_cd_read_t cdrd; dk_cd_read_t cdrd;
#endif #endif
TRACE("RAW_READ_INFO: DiskOffset=%i,%i SectorCount=%i TrackMode=%i\n buffer=%p len=%i sz=%p\n", TRACE("RAW_READ_INFO: DiskOffset=%s SectorCount=%i TrackMode=%i\n buffer=%p len=%i sz=%p\n",
raw->DiskOffset.u.HighPart, raw->DiskOffset.u.LowPart, raw->SectorCount, raw->TrackMode, buffer, len, sz); wine_dbgstr_longlong(raw->DiskOffset.QuadPart), (int)raw->SectorCount, (int)raw->TrackMode, buffer, (int)len, sz);
if (len < raw->SectorCount * 2352) return STATUS_BUFFER_TOO_SMALL; if (len < raw->SectorCount * 2352) return STATUS_BUFFER_TOO_SMALL;
...@@ -3057,11 +3056,11 @@ NTSTATUS cdrom_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc ...@@ -3057,11 +3056,11 @@ NTSTATUS cdrom_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc
else if (out_size < sz) status = STATUS_BUFFER_TOO_SMALL; else if (out_size < sz) status = STATUS_BUFFER_TOO_SMALL;
else else
{ {
TRACE("before in 0x%08x out 0x%08x\n",(in_buffer)?*(PDVD_SESSION_ID)in_buffer:0, TRACE("before in 0x%08x out 0x%08x\n",(int)(in_buffer ? *(DVD_SESSION_ID *)in_buffer : 0),
*(PDVD_SESSION_ID)out_buffer); (int)*(DVD_SESSION_ID *)out_buffer);
status = DVD_StartSession(fd, in_buffer, out_buffer); status = DVD_StartSession(fd, in_buffer, out_buffer);
TRACE("before in 0x%08x out 0x%08x\n",(in_buffer)?*(PDVD_SESSION_ID)in_buffer:0, TRACE("before in 0x%08x out 0x%08x\n",(int)(in_buffer ? *(DVD_SESSION_ID *)in_buffer : 0),
*(PDVD_SESSION_ID)out_buffer); (int)*(DVD_SESSION_ID *)out_buffer);
} }
break; break;
case IOCTL_DVD_END_SESSION: case IOCTL_DVD_END_SESSION:
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -303,8 +302,8 @@ int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_ ...@@ -303,8 +302,8 @@ int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_
UINT ticks = NtGetTickCount(); UINT ticks = NtGetTickCount();
pos += sprintf( pos, "%3u.%03u:", ticks / 1000, ticks % 1000 ); pos += sprintf( pos, "%3u.%03u:", ticks / 1000, ticks % 1000 );
} }
if (TRACE_ON(pid)) pos += sprintf( pos, "%04x:", GetCurrentProcessId() ); if (TRACE_ON(pid)) pos += sprintf( pos, "%04x:", (UINT)GetCurrentProcessId() );
pos += sprintf( pos, "%04x:", GetCurrentThreadId() ); pos += sprintf( pos, "%04x:", (UINT)GetCurrentThreadId() );
} }
if (function && cls < ARRAY_SIZE( classes )) if (function && cls < ARRAY_SIZE( classes ))
pos += snprintf( pos, sizeof(info->output) - (pos - info->output), "%s:%s:%s ", pos += snprintf( pos, sizeof(info->output) - (pos - info->output), "%s:%s:%s ",
...@@ -340,8 +339,8 @@ void dbg_init(void) ...@@ -340,8 +339,8 @@ void dbg_init(void)
NTSTATUS WINAPI NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len, NTSTATUS WINAPI NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len,
void *outbuf, ULONG outbuf_len, ULONG *size ) void *outbuf, ULONG outbuf_len, ULONG *size )
{ {
FIXME( "code %u, inbuf %p, inbuf_len %u, outbuf %p, outbuf_len %u, size %p\n", code, inbuf, inbuf_len, FIXME( "code %u, inbuf %p, inbuf_len %u, outbuf %p, outbuf_len %u, size %p\n",
outbuf, outbuf_len, size ); (int)code, inbuf, (int)inbuf_len, outbuf, (int)outbuf_len, size );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -351,7 +350,7 @@ NTSTATUS WINAPI NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len, ...@@ -351,7 +350,7 @@ NTSTATUS WINAPI NtTraceControl( ULONG code, void *inbuf, ULONG inbuf_len,
*/ */
NTSTATUS WINAPI NtSetDebugFilterState( ULONG component_id, ULONG level, BOOLEAN state ) NTSTATUS WINAPI NtSetDebugFilterState( ULONG component_id, ULONG level, BOOLEAN state )
{ {
FIXME( "component_id %#x, level %u, state %#x stub.\n", component_id, level, state ); FIXME( "component_id %#x, level %u, state %#x stub.\n", (int)component_id, (int)level, state );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -1561,7 +1560,7 @@ static WCHAR *build_command_line( WCHAR **wargv ) ...@@ -1561,7 +1560,7 @@ static WCHAR *build_command_line( WCHAR **wargv )
*p = 0; *p = 0;
if (p - ret >= 32767) if (p - ret >= 32767)
{ {
ERR( "command line too long (%u)\n", (DWORD)(p - ret) ); ERR( "command line too long (%zu)\n", p - ret );
NtTerminateProcess( GetCurrentProcess(), 1 ); NtTerminateProcess( GetCurrentProcess(), 1 );
} }
return ret; return ret;
...@@ -1587,7 +1586,7 @@ static void run_wineboot( WCHAR *env, SIZE_T size ) ...@@ -1587,7 +1586,7 @@ static void run_wineboot( WCHAR *env, SIZE_T size )
UNICODE_STRING nameW; UNICODE_STRING nameW;
OBJECT_ATTRIBUTES attr; OBJECT_ATTRIBUTES attr;
LARGE_INTEGER timeout; LARGE_INTEGER timeout;
NTSTATUS status; unsigned int status;
int count = 1; int count = 1;
init_unicode_string( &nameW, eventW ); init_unicode_string( &nameW, eventW );
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -767,7 +766,7 @@ NTSTATUS exec_wineloader( char **argv, int socketfd, const pe_image_info_t *pe_i ...@@ -767,7 +766,7 @@ NTSTATUS exec_wineloader( char **argv, int socketfd, const pe_image_info_t *pe_i
sprintf( socket_env, "WINESERVERSOCKET=%u", socketfd ); sprintf( socket_env, "WINESERVERSOCKET=%u", socketfd );
sprintf( preloader_reserve, "WINEPRELOADRESERVE=%x%08x-%x%08x", sprintf( preloader_reserve, "WINEPRELOADRESERVE=%x%08x-%x%08x",
(ULONG)(res_start >> 32), (ULONG)res_start, (ULONG)(res_end >> 32), (ULONG)res_end ); (UINT)(res_start >> 32), (UINT)res_start, (UINT)(res_end >> 32), (UINT)res_end );
putenv( preloader_reserve ); putenv( preloader_reserve );
putenv( socket_env ); putenv( socket_env );
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -413,7 +412,7 @@ static void set_stdio_fd( int stdin_fd, int stdout_fd ) ...@@ -413,7 +412,7 @@ static void set_stdio_fd( int stdin_fd, int stdout_fd )
*/ */
static BOOL is_unix_console_handle( HANDLE handle ) static BOOL is_unix_console_handle( HANDLE handle )
{ {
IO_STATUS_BLOCK io = {0}; IO_STATUS_BLOCK io = {{0}};
return !NtDeviceIoControlFile( handle, NULL, NULL, NULL, &io, IOCTL_CONDRV_IS_UNIX, return !NtDeviceIoControlFile( handle, NULL, NULL, NULL, &io, IOCTL_CONDRV_IS_UNIX,
NULL, 0, NULL, 0 ); NULL, 0, NULL, 0 );
} }
...@@ -702,13 +701,13 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_ ...@@ -702,13 +701,13 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
if (thread_flags & THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER) if (thread_flags & THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER)
{ {
WARN( "Invalid thread flags %#x.\n", thread_flags ); WARN( "Invalid thread flags %#x.\n", (int)thread_flags );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
if (thread_flags & ~THREAD_CREATE_FLAGS_CREATE_SUSPENDED) if (thread_flags & ~THREAD_CREATE_FLAGS_CREATE_SUSPENDED)
FIXME( "Unsupported thread flags %#x.\n", thread_flags ); FIXME( "Unsupported thread flags %#x.\n", (int)thread_flags );
for (i = 0; i < attr_count; i++) for (i = 0; i < attr_count; i++)
{ {
...@@ -889,7 +888,7 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_ ...@@ -889,7 +888,7 @@ NTSTATUS WINAPI NtCreateUserProcess( HANDLE *process_handle_ptr, HANDLE *thread_
} }
TRACE( "%s pid %04x tid %04x handles %p/%p\n", debugstr_us(&path), TRACE( "%s pid %04x tid %04x handles %p/%p\n", debugstr_us(&path),
HandleToULong(id.UniqueProcess), HandleToULong(id.UniqueThread), (int)HandleToULong(id.UniqueProcess), (int)HandleToULong(id.UniqueThread),
process_handle, thread_handle ); process_handle, thread_handle );
/* update output attributes */ /* update output attributes */
...@@ -1070,7 +1069,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class ...@@ -1070,7 +1069,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
unsigned int ret = STATUS_SUCCESS; unsigned int ret = STATUS_SUCCESS;
ULONG len = 0; ULONG len = 0;
TRACE( "(%p,0x%08x,%p,0x%08x,%p)\n", handle, class, info, size, ret_len ); TRACE( "(%p,0x%08x,%p,0x%08x,%p)\n", handle, class, info, (int)size, ret_len );
switch (class) switch (class)
{ {
...@@ -1469,7 +1468,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class ...@@ -1469,7 +1468,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
break; break;
case ProcessCookie: case ProcessCookie:
FIXME( "ProcessCookie (%p,%p,0x%08x,%p) stub\n", handle, info, size, ret_len ); FIXME( "ProcessCookie (%p,%p,0x%08x,%p) stub\n", handle, info, (int)size, ret_len );
if (handle == NtCurrentProcess()) if (handle == NtCurrentProcess())
{ {
len = sizeof(ULONG); len = sizeof(ULONG);
...@@ -1517,7 +1516,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class ...@@ -1517,7 +1516,7 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
default: default:
FIXME("(%p,info_class=%d,%p,0x%08x,%p) Unknown information class\n", FIXME("(%p,info_class=%d,%p,0x%08x,%p) Unknown information class\n",
handle, class, info, size, ret_len ); handle, class, info, (int)size, ret_len );
ret = STATUS_INVALID_INFO_CLASS; ret = STATUS_INVALID_INFO_CLASS;
break; break;
} }
...@@ -1645,7 +1644,7 @@ NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class, ...@@ -1645,7 +1644,7 @@ NTSTATUS WINAPI NtSetInformationProcess( HANDLE handle, PROCESSINFOCLASS class,
return ret; return ret;
default: default:
FIXME( "(%p,0x%08x,%p,0x%08x) stub\n", handle, class, info, size ); FIXME( "(%p,0x%08x,%p,0x%08x) stub\n", handle, class, info, (int)size );
ret = STATUS_NOT_IMPLEMENTED; ret = STATUS_NOT_IMPLEMENTED;
break; break;
} }
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
...@@ -57,10 +56,10 @@ NTSTATUS open_hkcu_key( const char *path, HANDLE *key ) ...@@ -57,10 +56,10 @@ NTSTATUS open_hkcu_key( const char *path, HANDLE *key )
sid = ((TOKEN_USER *)sid_data)->User.Sid; sid = ((TOKEN_USER *)sid_data)->User.Sid;
len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", sid->Revision, len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", sid->Revision,
MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5], sid->IdentifierAuthority.Value[4] ), (int)MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5], sid->IdentifierAuthority.Value[4] ),
MAKEWORD( sid->IdentifierAuthority.Value[3], sid->IdentifierAuthority.Value[2] ))); MAKEWORD( sid->IdentifierAuthority.Value[3], sid->IdentifierAuthority.Value[2] )));
for (i = 0; i < sid->SubAuthorityCount; i++) for (i = 0; i < sid->SubAuthorityCount; i++)
len += sprintf( buffer + len, "-%u", sid->SubAuthority[i] ); len += sprintf( buffer + len, "-%u", (int)sid->SubAuthority[i] );
len += sprintf( buffer + len, "\\%s", path ); len += sprintf( buffer + len, "\\%s", path );
ascii_to_unicode( bufferW, buffer, len + 1 ); ascii_to_unicode( bufferW, buffer, len + 1 );
...@@ -87,7 +86,7 @@ NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI ...@@ -87,7 +86,7 @@ NTSTATUS WINAPI NtCreateKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI
objattr->attributes |= OBJ_OPENIF | OBJ_CASE_INSENSITIVE; objattr->attributes |= OBJ_OPENIF | OBJ_CASE_INSENSITIVE;
TRACE( "(%p,%s,%s,%x,%x,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), TRACE( "(%p,%s,%s,%x,%x,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName),
debugstr_us(class), options, access, key ); debugstr_us(class), (int)options, (int)access, key );
SERVER_START_REQ( create_key ) SERVER_START_REQ( create_key )
{ {
...@@ -124,7 +123,7 @@ NTSTATUS WINAPI NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OB ...@@ -124,7 +123,7 @@ NTSTATUS WINAPI NtCreateKeyTransacted( HANDLE *key, ACCESS_MASK access, const OB
HANDLE transacted, ULONG *dispos ) HANDLE transacted, ULONG *dispos )
{ {
FIXME( "(%p,%s,%s,%x,%x,%p,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), FIXME( "(%p,%s,%s,%x,%x,%p,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName),
debugstr_us(class), options, access, transacted, key ); debugstr_us(class), (int)options, (int)access, transacted, key );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -141,9 +140,9 @@ NTSTATUS WINAPI NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI ...@@ -141,9 +140,9 @@ NTSTATUS WINAPI NtOpenKeyEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRI
if (attr->Length != sizeof(*attr)) return STATUS_INVALID_PARAMETER; if (attr->Length != sizeof(*attr)) return STATUS_INVALID_PARAMETER;
if (attr->ObjectName->Length & 1) return STATUS_OBJECT_NAME_INVALID; if (attr->ObjectName->Length & 1) return STATUS_OBJECT_NAME_INVALID;
TRACE( "(%p,%s,%x,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), access, key ); TRACE( "(%p,%s,%x,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), (int)access, key );
if (options & ~REG_OPTION_OPEN_LINK) FIXME( "options %x not implemented\n", options ); if (options & ~REG_OPTION_OPEN_LINK) FIXME( "options %x not implemented\n", (int)options );
attributes = attr->Attributes | OBJ_CASE_INSENSITIVE; attributes = attr->Attributes | OBJ_CASE_INSENSITIVE;
...@@ -177,7 +176,7 @@ NTSTATUS WINAPI NtOpenKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBU ...@@ -177,7 +176,7 @@ NTSTATUS WINAPI NtOpenKey( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBU
NTSTATUS WINAPI NtOpenKeyTransactedEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr, NTSTATUS WINAPI NtOpenKeyTransactedEx( HANDLE *key, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr,
ULONG options, HANDLE transaction ) ULONG options, HANDLE transaction )
{ {
FIXME( "(%p %x %p %x %p)\n", key, access, attr, options, transaction ); FIXME( "(%p %x %p %x %p)\n", key, (int)access, attr, (int)options, transaction );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -380,7 +379,7 @@ NTSTATUS WINAPI NtQueryKey( HANDLE handle, KEY_INFORMATION_CLASS info_class, ...@@ -380,7 +379,7 @@ NTSTATUS WINAPI NtQueryKey( HANDLE handle, KEY_INFORMATION_CLASS info_class,
*/ */
NTSTATUS WINAPI NtSetInformationKey( HANDLE key, int class, void *info, ULONG length ) NTSTATUS WINAPI NtSetInformationKey( HANDLE key, int class, void *info, ULONG length )
{ {
FIXME( "(%p,0x%08x,%p,0x%08x) stub\n", key, class, info, length ); FIXME( "(%p,0x%08x,%p,0x%08x) stub\n", key, class, info, (int)length );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -442,7 +441,7 @@ NTSTATUS WINAPI NtEnumerateValueKey( HANDLE handle, ULONG index, KEY_VALUE_INFOR ...@@ -442,7 +441,7 @@ NTSTATUS WINAPI NtEnumerateValueKey( HANDLE handle, ULONG index, KEY_VALUE_INFOR
void *ptr; void *ptr;
size_t fixed_size; size_t fixed_size;
TRACE( "(%p,%u,%d,%p,%d)\n", handle, index, info_class, info, length ); TRACE( "(%p,%u,%d,%p,%d)\n", handle, (int)index, info_class, info, (int)length );
/* compute the length we want to retrieve */ /* compute the length we want to retrieve */
switch (info_class) switch (info_class)
...@@ -486,7 +485,7 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name, ...@@ -486,7 +485,7 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name,
UCHAR *data_ptr; UCHAR *data_ptr;
unsigned int fixed_size, min_size; unsigned int fixed_size, min_size;
TRACE( "(%p,%s,%d,%p,%d)\n", handle, debugstr_us(name), info_class, info, length ); TRACE( "(%p,%s,%d,%p,%d)\n", handle, debugstr_us(name), info_class, info, (int)length );
if (name->Length > MAX_VALUE_LENGTH) return STATUS_OBJECT_NAME_NOT_FOUND; if (name->Length > MAX_VALUE_LENGTH) return STATUS_OBJECT_NAME_NOT_FOUND;
...@@ -550,7 +549,7 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name, ...@@ -550,7 +549,7 @@ NTSTATUS WINAPI NtQueryValueKey( HANDLE handle, const UNICODE_STRING *name,
NTSTATUS WINAPI NtQueryMultipleValueKey( HANDLE key, KEY_MULTIPLE_VALUE_INFORMATION *info, NTSTATUS WINAPI NtQueryMultipleValueKey( HANDLE key, KEY_MULTIPLE_VALUE_INFORMATION *info,
ULONG count, void *buffer, ULONG length, ULONG *retlen ) ULONG count, void *buffer, ULONG length, ULONG *retlen )
{ {
FIXME( "(%p,%p,0x%08x,%p,0x%08x,%p) stub!\n", key, info, count, buffer, length, retlen ); FIXME( "(%p,%p,0x%08x,%p,0x%08x,%p) stub!\n", key, info, (int)count, buffer, (int)length, retlen );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -563,7 +562,7 @@ NTSTATUS WINAPI NtSetValueKey( HANDLE key, const UNICODE_STRING *name, ULONG ind ...@@ -563,7 +562,7 @@ NTSTATUS WINAPI NtSetValueKey( HANDLE key, const UNICODE_STRING *name, ULONG ind
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p,%s,%d,%p,%d)\n", key, debugstr_us(name), type, data, count ); TRACE( "(%p,%s,%d,%p,%d)\n", key, debugstr_us(name), (int)type, data, (int)count );
if (name->Length > MAX_VALUE_LENGTH) return STATUS_INVALID_PARAMETER; if (name->Length > MAX_VALUE_LENGTH) return STATUS_INVALID_PARAMETER;
...@@ -614,7 +613,8 @@ NTSTATUS WINAPI NtNotifyChangeMultipleKeys( HANDLE key, ULONG count, OBJECT_ATTR ...@@ -614,7 +613,8 @@ NTSTATUS WINAPI NtNotifyChangeMultipleKeys( HANDLE key, ULONG count, OBJECT_ATTR
unsigned int ret; unsigned int ret;
TRACE( "(%p,%u,%p,%p,%p,%p,%p,0x%08x, 0x%08x,%p,0x%08x,0x%08x)\n", TRACE( "(%p,%u,%p,%p,%p,%p,%p,0x%08x, 0x%08x,%p,0x%08x,0x%08x)\n",
key, count, attr, event, apc, apc_context, io, filter, async, buffer, length, subtree ); key, (int)count, attr, event, apc, apc_context, io,
(int)filter, async, buffer, (int)length, subtree );
if (count || attr || apc || apc_context || buffer || length) if (count || attr || apc || apc_context || buffer || length)
FIXME( "Unimplemented optional parameter\n" ); FIXME( "Unimplemented optional parameter\n" );
...@@ -708,9 +708,10 @@ NTSTATUS WINAPI NtLoadKeyEx( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *f ...@@ -708,9 +708,10 @@ NTSTATUS WINAPI NtLoadKeyEx( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *f
UNICODE_STRING nt_name; UNICODE_STRING nt_name;
OBJECT_ATTRIBUTES new_attr = *file; OBJECT_ATTRIBUTES new_attr = *file;
TRACE( "(%p,%p,0x%x,%p,%p,0x%x,%p,%p)\n", attr, file, flags, trustkey, event, access, roothandle, iostatus ); TRACE( "(%p,%p,0x%x,%p,%p,0x%x,%p,%p)\n",
attr, file, (int)flags, trustkey, event, (int)access, roothandle, iostatus );
if (flags) FIXME( "flags %x not handled\n", flags ); if (flags) FIXME( "flags %x not handled\n", (int)flags );
if (trustkey) FIXME("trustkey parameter not supported\n"); if (trustkey) FIXME("trustkey parameter not supported\n");
if (event) FIXME("event parameter not supported\n"); if (event) FIXME("event parameter not supported\n");
if (access) FIXME("access parameter not supported\n"); if (access) FIXME("access parameter not supported\n");
...@@ -795,7 +796,7 @@ NTSTATUS WINAPI NtSaveKey( HANDLE key, HANDLE file ) ...@@ -795,7 +796,7 @@ NTSTATUS WINAPI NtSaveKey( HANDLE key, HANDLE file )
*/ */
NTSTATUS WINAPI NtRestoreKey( HANDLE key, HANDLE file, ULONG flags ) NTSTATUS WINAPI NtRestoreKey( HANDLE key, HANDLE file, ULONG flags )
{ {
FIXME( "(%p,%p,0x%08x) stub\n", key, file, flags ); FIXME( "(%p,%p,0x%08x) stub\n", key, file, (int)flags );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -54,7 +53,7 @@ NTSTATUS WINAPI NtOpenProcessTokenEx( HANDLE process, DWORD access, DWORD attrib ...@@ -54,7 +53,7 @@ NTSTATUS WINAPI NtOpenProcessTokenEx( HANDLE process, DWORD access, DWORD attrib
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p,0x%08x,0x%08x,%p)\n", process, access, attributes, handle ); TRACE( "(%p,0x%08x,0x%08x,%p)\n", process, (int)access, (int)attributes, handle );
*handle = 0; *handle = 0;
...@@ -89,7 +88,7 @@ NTSTATUS WINAPI NtOpenThreadTokenEx( HANDLE thread, DWORD access, BOOLEAN self, ...@@ -89,7 +88,7 @@ NTSTATUS WINAPI NtOpenThreadTokenEx( HANDLE thread, DWORD access, BOOLEAN self,
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p,0x%08x,%u,0x%08x,%p)\n", thread, access, self, attributes, handle ); TRACE( "(%p,0x%08x,%u,0x%08x,%p)\n", thread, (int)access, self, (int)attributes, handle );
*handle = 0; *handle = 0;
...@@ -125,7 +124,7 @@ NTSTATUS WINAPI NtDuplicateToken( HANDLE token, ACCESS_MASK access, OBJECT_ATTRI ...@@ -125,7 +124,7 @@ NTSTATUS WINAPI NtDuplicateToken( HANDLE token, ACCESS_MASK access, OBJECT_ATTRI
{ {
SECURITY_QUALITY_OF_SERVICE *qos = attr->SecurityQualityOfService; SECURITY_QUALITY_OF_SERVICE *qos = attr->SecurityQualityOfService;
TRACE( "ObjectAttributes->SecurityQualityOfService = {%d, %d, %d, %s}\n", TRACE( "ObjectAttributes->SecurityQualityOfService = {%d, %d, %d, %s}\n",
qos->Length, qos->ImpersonationLevel, qos->ContextTrackingMode, (int)qos->Length, qos->ImpersonationLevel, qos->ContextTrackingMode,
qos->EffectiveOnly ? "TRUE" : "FALSE"); qos->EffectiveOnly ? "TRUE" : "FALSE");
level = qos->ImpersonationLevel; level = qos->ImpersonationLevel;
} }
...@@ -201,7 +200,7 @@ NTSTATUS WINAPI NtQueryInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS c ...@@ -201,7 +200,7 @@ NTSTATUS WINAPI NtQueryInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS c
ULONG len = 0; ULONG len = 0;
unsigned int status = STATUS_SUCCESS; unsigned int status = STATUS_SUCCESS;
TRACE( "(%p,%d,%p,%d,%p)\n", token, class, info, length, retlen ); TRACE( "(%p,%d,%p,%d,%p)\n", token, class, info, (int)length, retlen );
if (class < MaxTokenInfoClass) len = info_len[class]; if (class < MaxTokenInfoClass) len = info_len[class];
if (retlen) *retlen = len; if (retlen) *retlen = len;
...@@ -495,7 +494,7 @@ NTSTATUS WINAPI NtSetInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS cla ...@@ -495,7 +494,7 @@ NTSTATUS WINAPI NtSetInformationToken( HANDLE token, TOKEN_INFORMATION_CLASS cla
{ {
unsigned int ret = STATUS_NOT_IMPLEMENTED; unsigned int ret = STATUS_NOT_IMPLEMENTED;
TRACE( "%p %d %p %u\n", token, class, info, length ); TRACE( "%p %d %p %u\n", token, class, info, (int)length );
switch (class) switch (class)
{ {
...@@ -560,7 +559,8 @@ NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_ ...@@ -560,7 +559,8 @@ NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_
SID_AND_ATTRIBUTES *capabilities, ULONG handle_count, HANDLE *handle ) SID_AND_ATTRIBUTES *capabilities, ULONG handle_count, HANDLE *handle )
{ {
FIXME("(%p, %p, %x, %p, %p, %u, %p, %u, %p): stub\n", FIXME("(%p, %p, %x, %p, %p, %u, %p, %u, %p): stub\n",
token_handle, token, access, attr, sid, count, capabilities, handle_count, handle ); token_handle, token, (int)access, attr, sid,
(int)count, capabilities, (int)handle_count, handle );
/* we need to return a NULL handle since later it will be passed to NtClose and that must not fail */ /* we need to return a NULL handle since later it will be passed to NtClose and that must not fail */
*token_handle = NULL; *token_handle = NULL;
...@@ -574,7 +574,7 @@ NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_ ...@@ -574,7 +574,7 @@ NTSTATUS WINAPI NtCreateLowBoxToken( HANDLE *token_handle, HANDLE token, ACCESS_
NTSTATUS WINAPI NtAdjustGroupsToken( HANDLE token, BOOLEAN reset, TOKEN_GROUPS *groups, NTSTATUS WINAPI NtAdjustGroupsToken( HANDLE token, BOOLEAN reset, TOKEN_GROUPS *groups,
ULONG length, TOKEN_GROUPS *prev, ULONG *retlen ) ULONG length, TOKEN_GROUPS *prev, ULONG *retlen )
{ {
FIXME( "%p %d %p %u %p %p\n", token, reset, groups, length, prev, retlen ); FIXME( "%p %d %p %u %p %p\n", token, reset, groups, (int)length, prev, retlen );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -587,7 +587,7 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken( HANDLE token, BOOLEAN disable, TOKEN_PR ...@@ -587,7 +587,7 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken( HANDLE token, BOOLEAN disable, TOKEN_PR
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p,0x%08x,%p,0x%08x,%p,%p)\n", token, disable, privs, length, prev, retlen ); TRACE( "(%p,0x%08x,%p,0x%08x,%p,%p)\n", token, disable, privs, (int)length, prev, retlen );
SERVER_START_REQ( adjust_token_privileges ) SERVER_START_REQ( adjust_token_privileges )
{ {
...@@ -623,11 +623,11 @@ NTSTATUS WINAPI NtFilterToken( HANDLE token, ULONG flags, TOKEN_GROUPS *disable_ ...@@ -623,11 +623,11 @@ NTSTATUS WINAPI NtFilterToken( HANDLE token, ULONG flags, TOKEN_GROUPS *disable_
SID *sids = NULL; SID *sids = NULL;
unsigned int status; unsigned int status;
TRACE( "%p %#x %p %p %p %p\n", token, flags, disable_sids, privileges, TRACE( "%p %#x %p %p %p %p\n", token, (int)flags, disable_sids, privileges,
restrict_sids, new_token ); restrict_sids, new_token );
if (flags) if (flags)
FIXME( "flags %#x unsupported\n", flags ); FIXME( "flags %#x unsupported\n", (int)flags );
if (restrict_sids) if (restrict_sids)
FIXME( "support for restricting sids not yet implemented\n" ); FIXME( "support for restricting sids not yet implemented\n" );
...@@ -720,7 +720,7 @@ NTSTATUS WINAPI NtAccessCheck( PSECURITY_DESCRIPTOR descr, HANDLE token, ACCESS_ ...@@ -720,7 +720,7 @@ NTSTATUS WINAPI NtAccessCheck( PSECURITY_DESCRIPTOR descr, HANDLE token, ACCESS_
ULONG priv_len; ULONG priv_len;
TRACE( "(%p, %p, %08x, %p, %p, %p, %p, %p)\n", TRACE( "(%p, %p, %08x, %p, %p, %p, %p, %p)\n",
descr, token, access, mapping, privs, retlen, access_granted, access_status ); descr, token, (int)access, mapping, privs, retlen, access_granted, access_status );
if (!privs || !retlen) return STATUS_ACCESS_VIOLATION; if (!privs || !retlen) return STATUS_ACCESS_VIOLATION;
priv_len = *retlen; priv_len = *retlen;
...@@ -771,7 +771,7 @@ NTSTATUS WINAPI NtAccessCheckAndAuditAlarm( UNICODE_STRING *subsystem, HANDLE ha ...@@ -771,7 +771,7 @@ NTSTATUS WINAPI NtAccessCheckAndAuditAlarm( UNICODE_STRING *subsystem, HANDLE ha
BOOLEAN *onclose ) BOOLEAN *onclose )
{ {
FIXME( "(%s, %p, %s, %p, 0x%08x, %p, %d, %p, %p, %p), stub\n", FIXME( "(%s, %p, %s, %p, 0x%08x, %p, %d, %p, %p, %p), stub\n",
debugstr_us(subsystem), handle, debugstr_us(typename), descr, access, debugstr_us(subsystem), handle, debugstr_us(typename), descr, (int)access,
mapping, creation, access_granted, access_status, onclose ); mapping, creation, access_granted, access_status, onclose );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -788,7 +788,7 @@ NTSTATUS WINAPI NtQuerySecurityObject( HANDLE handle, SECURITY_INFORMATION info, ...@@ -788,7 +788,7 @@ NTSTATUS WINAPI NtQuerySecurityObject( HANDLE handle, SECURITY_INFORMATION info,
void *buffer; void *buffer;
unsigned int buffer_size = 512; unsigned int buffer_size = 512;
TRACE( "(%p,0x%08x,%p,0x%08x,%p)\n", handle, info, descr, length, retlen ); TRACE( "(%p,0x%08x,%p,0x%08x,%p)\n", handle, (int)info, descr, (int)length, retlen );
for (;;) for (;;)
{ {
...@@ -848,7 +848,7 @@ NTSTATUS WINAPI NtSetSecurityObject( HANDLE handle, SECURITY_INFORMATION info, P ...@@ -848,7 +848,7 @@ NTSTATUS WINAPI NtSetSecurityObject( HANDLE handle, SECURITY_INFORMATION info, P
OBJECT_ATTRIBUTES attr; OBJECT_ATTRIBUTES attr;
unsigned int status; unsigned int status;
TRACE( "%p 0x%08x %p\n", handle, info, descr ); TRACE( "%p 0x%08x %p\n", handle, (int)info, descr );
if (!descr) return STATUS_ACCESS_VIOLATION; if (!descr) return STATUS_ACCESS_VIOLATION;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -550,7 +549,7 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr) ...@@ -550,7 +549,7 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
"hardware. I hope you know what you are doing. Any disruption Wine\n" "hardware. I hope you know what you are doing. Any disruption Wine\n"
"has caused to your linux system can be undone with setserial\n" "has caused to your linux system can be undone with setserial\n"
"(see man setserial). If you have incapacitated a Hayes type modem,\n" "(see man setserial). If you have incapacitated a Hayes type modem,\n"
"reset it and it will probably recover.\n", sbr->BaudRate, arby); "reset it and it will probably recover.\n", (int)sbr->BaudRate, arby);
ioctl(fd, TIOCSSERIAL, &nuts); ioctl(fd, TIOCSSERIAL, &nuts);
cfsetospeed( &port, B38400 ); cfsetospeed( &port, B38400 );
} }
...@@ -757,7 +756,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc) ...@@ -757,7 +756,7 @@ static NTSTATUS set_line_control(int fd, const SERIAL_LINE_CONTROL* slc)
static NTSTATUS set_queue_size(int fd, const SERIAL_QUEUE_SIZE* sqs) static NTSTATUS set_queue_size(int fd, const SERIAL_QUEUE_SIZE* sqs)
{ {
FIXME("insize %d outsize %d unimplemented stub\n", sqs->InSize, sqs->OutSize); FIXME("insize %d outsize %d unimplemented stub\n", (int)sqs->InSize, (int)sqs->OutSize);
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -160,7 +159,7 @@ static DECLSPEC_NORETURN void server_protocol_error( const char *err, ... ) ...@@ -160,7 +159,7 @@ static DECLSPEC_NORETURN void server_protocol_error( const char *err, ... )
va_list args; va_list args;
va_start( args, err ); va_start( args, err );
fprintf( stderr, "wine client error:%x: ", GetCurrentThreadId() ); fprintf( stderr, "wine client error:%x: ", (int)GetCurrentThreadId() );
vfprintf( stderr, err, args ); vfprintf( stderr, err, args );
va_end( args ); va_end( args );
abort_thread(1); abort_thread(1);
...@@ -172,7 +171,7 @@ static DECLSPEC_NORETURN void server_protocol_error( const char *err, ... ) ...@@ -172,7 +171,7 @@ static DECLSPEC_NORETURN void server_protocol_error( const char *err, ... )
*/ */
static DECLSPEC_NORETURN void server_protocol_perror( const char *err ) static DECLSPEC_NORETURN void server_protocol_perror( const char *err )
{ {
fprintf( stderr, "wine client error:%x: ", GetCurrentThreadId() ); fprintf( stderr, "wine client error:%x: ", (int)GetCurrentThreadId() );
perror( err ); perror( err );
abort_thread(1); abort_thread(1);
} }
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#ifdef __arm__ #ifdef __arm__
...@@ -529,14 +528,14 @@ static NTSTATUS ehabi_virtual_unwind( UINT ip, DWORD *frame, CONTEXT *context, ...@@ -529,14 +528,14 @@ static NTSTATUS ehabi_virtual_unwind( UINT ip, DWORD *frame, CONTEXT *context,
* describes how both of them are restored separately, and as long as * describes how both of them are restored separately, and as long as
* the unwind info restored Pc, it doesn't have to be set from Lr. */ * the unwind info restored Pc, it doesn't have to be set from Lr. */
TRACE( "next function pc=%08x\n", context->Pc ); TRACE( "next function pc=%08lx\n", context->Pc );
TRACE(" r0=%08x r1=%08x r2=%08x r3=%08x\n", TRACE(" r0=%08lx r1=%08lx r2=%08lx r3=%08lx\n",
context->R0, context->R1, context->R2, context->R3 ); context->R0, context->R1, context->R2, context->R3 );
TRACE(" r4=%08x r5=%08x r6=%08x r7=%08x\n", TRACE(" r4=%08lx r5=%08lx r6=%08lx r7=%08lx\n",
context->R4, context->R5, context->R6, context->R7 ); context->R4, context->R5, context->R6, context->R7 );
TRACE(" r8=%08x r9=%08x r10=%08x r11=%08x\n", TRACE(" r8=%08lx r9=%08lx r10=%08lx r11=%08lx\n",
context->R8, context->R9, context->R10, context->R11 ); context->R8, context->R9, context->R10, context->R11 );
TRACE(" r12=%08x sp=%08x lr=%08x pc=%08x\n", TRACE(" r12=%08lx sp=%08lx lr=%08lx pc=%08lx\n",
context->R12, context->Sp, context->Lr, context->Pc ); context->R12, context->Sp, context->Lr, context->Pc );
return STATUS_SUCCESS; return STATUS_SUCCESS;
...@@ -712,14 +711,14 @@ static NTSTATUS libunwind_virtual_unwind( DWORD ip, DWORD *frame, CONTEXT *conte ...@@ -712,14 +711,14 @@ static NTSTATUS libunwind_virtual_unwind( DWORD ip, DWORD *frame, CONTEXT *conte
context->Lr = *orig_lr; context->Lr = *orig_lr;
} }
TRACE( "next function pc=%08x%s\n", context->Pc, rc ? "" : " (last frame)" ); TRACE( "next function pc=%08lx%s\n", context->Pc, rc ? "" : " (last frame)" );
TRACE(" r0=%08x r1=%08x r2=%08x r3=%08x\n", TRACE(" r0=%08lx r1=%08lx r2=%08lx r3=%08lx\n",
context->R0, context->R1, context->R2, context->R3 ); context->R0, context->R1, context->R2, context->R3 );
TRACE(" r4=%08x r5=%08x r6=%08x r7=%08x\n", TRACE(" r4=%08lx r5=%08lx r6=%08lx r7=%08lx\n",
context->R4, context->R5, context->R6, context->R7 ); context->R4, context->R5, context->R6, context->R7 );
TRACE(" r8=%08x r9=%08x r10=%08x r11=%08x\n", TRACE(" r8=%08lx r9=%08lx r10=%08lx r11=%08lx\n",
context->R8, context->R9, context->R10, context->R11 ); context->R8, context->R9, context->R10, context->R11 );
TRACE(" r12=%08x sp=%08x lr=%08x pc=%08x\n", TRACE(" r12=%08lx sp=%08lx lr=%08lx pc=%08lx\n",
context->R12, context->Sp, context->Lr, context->Pc ); context->R12, context->Sp, context->Lr, context->Pc );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -1259,19 +1258,18 @@ static BOOL handle_syscall_fault( ucontext_t *context, EXCEPTION_RECORD *rec ) ...@@ -1259,19 +1258,18 @@ static BOOL handle_syscall_fault( ucontext_t *context, EXCEPTION_RECORD *rec )
if (!is_inside_syscall( context ) && !ntdll_get_thread_data()->jmp_buf) return FALSE; if (!is_inside_syscall( context ) && !ntdll_get_thread_data()->jmp_buf) return FALSE;
TRACE( "code=%x flags=%x addr=%p pc=%08x tid=%04x\n", TRACE( "code=%lx flags=%lx addr=%p pc=%08lx\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, (DWORD)PC_sig(context) );
(DWORD)PC_sig(context), GetCurrentThreadId() );
for (i = 0; i < rec->NumberParameters; i++) for (i = 0; i < rec->NumberParameters; i++)
TRACE( " info[%d]=%08lx\n", i, rec->ExceptionInformation[i] ); TRACE( " info[%d]=%08lx\n", i, rec->ExceptionInformation[i] );
TRACE( " r0=%08x r1=%08x r2=%08x r3=%08x r4=%08x r5=%08x\n", TRACE( " r0=%08lx r1=%08lx r2=%08lx r3=%08lx r4=%08lx r5=%08lx\n",
(DWORD)REGn_sig(0, context), (DWORD)REGn_sig(1, context), (DWORD)REGn_sig(2, context), (DWORD)REGn_sig(0, context), (DWORD)REGn_sig(1, context), (DWORD)REGn_sig(2, context),
(DWORD)REGn_sig(3, context), (DWORD)REGn_sig(4, context), (DWORD)REGn_sig(5, context) ); (DWORD)REGn_sig(3, context), (DWORD)REGn_sig(4, context), (DWORD)REGn_sig(5, context) );
TRACE( " r6=%08x r7=%08x r8=%08x r9=%08x r10=%08x r11=%08x\n", TRACE( " r6=%08lx r7=%08lx r8=%08lx r9=%08lx r10=%08lx r11=%08lx\n",
(DWORD)REGn_sig(6, context), (DWORD)REGn_sig(7, context), (DWORD)REGn_sig(8, context), (DWORD)REGn_sig(6, context), (DWORD)REGn_sig(7, context), (DWORD)REGn_sig(8, context),
(DWORD)REGn_sig(9, context), (DWORD)REGn_sig(10, context), (DWORD)FP_sig(context) ); (DWORD)REGn_sig(9, context), (DWORD)REGn_sig(10, context), (DWORD)FP_sig(context) );
TRACE( " r12=%08x sp=%08x lr=%08x pc=%08x cpsr=%08x\n", TRACE( " r12=%08lx sp=%08lx lr=%08lx pc=%08lx cpsr=%08lx\n",
(DWORD)IP_sig(context), (DWORD)SP_sig(context), (DWORD)LR_sig(context), (DWORD)IP_sig(context), (DWORD)SP_sig(context), (DWORD)LR_sig(context),
(DWORD)PC_sig(context), (DWORD)CPSR_sig(context) ); (DWORD)PC_sig(context), (DWORD)CPSR_sig(context) );
...@@ -1285,7 +1283,7 @@ static BOOL handle_syscall_fault( ucontext_t *context, EXCEPTION_RECORD *rec ) ...@@ -1285,7 +1283,7 @@ static BOOL handle_syscall_fault( ucontext_t *context, EXCEPTION_RECORD *rec )
} }
else else
{ {
TRACE( "returning to user mode ip=%08x ret=%08x\n", frame->pc, rec->ExceptionCode ); TRACE( "returning to user mode ip=%08x ret=%08lx\n", frame->pc, rec->ExceptionCode );
REGn_sig(0, context) = (DWORD)frame; REGn_sig(0, context) = (DWORD)frame;
REGn_sig(1, context) = rec->ExceptionCode; REGn_sig(1, context) = rec->ExceptionCode;
PC_sig(context) = (DWORD)__wine_syscall_dispatcher_return; PC_sig(context) = (DWORD)__wine_syscall_dispatcher_return;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#ifdef __i386__ #ifdef __i386__
...@@ -1129,16 +1128,16 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context ) ...@@ -1129,16 +1128,16 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
} }
if (context->ContextFlags & (CONTEXT_INTEGER & ~CONTEXT_i386)) if (context->ContextFlags & (CONTEXT_INTEGER & ~CONTEXT_i386))
TRACE( "%p: eax=%08x ebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x\n", handle, TRACE( "%p: eax=%08lx ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx\n", handle,
context->Eax, context->Ebx, context->Ecx, context->Edx, context->Esi, context->Edi ); context->Eax, context->Ebx, context->Ecx, context->Edx, context->Esi, context->Edi );
if (context->ContextFlags & (CONTEXT_CONTROL & ~CONTEXT_i386)) if (context->ContextFlags & (CONTEXT_CONTROL & ~CONTEXT_i386))
TRACE( "%p: ebp=%08x esp=%08x eip=%08x cs=%04x ss=%04x flags=%08x\n", handle, TRACE( "%p: ebp=%08lx esp=%08lx eip=%08lx cs=%04lx ss=%04lx flags=%08lx\n", handle,
context->Ebp, context->Esp, context->Eip, context->SegCs, context->SegSs, context->EFlags ); context->Ebp, context->Esp, context->Eip, context->SegCs, context->SegSs, context->EFlags );
if (context->ContextFlags & (CONTEXT_SEGMENTS & ~CONTEXT_i386)) if (context->ContextFlags & (CONTEXT_SEGMENTS & ~CONTEXT_i386))
TRACE( "%p: ds=%04x es=%04x fs=%04x gs=%04x\n", handle, TRACE( "%p: ds=%04lx es=%04lx fs=%04lx gs=%04lx\n", handle,
context->SegDs, context->SegEs, context->SegFs, context->SegGs ); context->SegDs, context->SegEs, context->SegFs, context->SegGs );
if (context->ContextFlags & (CONTEXT_DEBUG_REGISTERS & ~CONTEXT_i386)) if (context->ContextFlags & (CONTEXT_DEBUG_REGISTERS & ~CONTEXT_i386))
TRACE( "%p: dr0=%08x dr1=%08x dr2=%08x dr3=%08x dr6=%08x dr7=%08x\n", handle, TRACE( "%p: dr0=%08lx dr1=%08lx dr2=%08lx dr3=%08lx dr6=%08lx dr7=%08lx\n", handle,
context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 ); context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
return STATUS_SUCCESS; return STATUS_SUCCESS;
...@@ -1262,7 +1261,7 @@ static inline BOOL check_invalid_gs( ucontext_t *sigcontext, CONTEXT *context ) ...@@ -1262,7 +1261,7 @@ static inline BOOL check_invalid_gs( ucontext_t *sigcontext, CONTEXT *context )
instr++; instr++;
continue; continue;
case 0x65: /* %gs: */ case 0x65: /* %gs: */
TRACE( "%04x/%04x at %p, fixing up\n", context->SegGs, system_gs, instr ); TRACE( "%04lx/%04x at %p, fixing up\n", context->SegGs, system_gs, instr );
GS_sig(sigcontext) = system_gs; GS_sig(sigcontext) = system_gs;
return TRUE; return TRUE;
default: default:
...@@ -1774,15 +1773,14 @@ static BOOL handle_syscall_fault( ucontext_t *sigcontext, void *stack_ptr, ...@@ -1774,15 +1773,14 @@ static BOOL handle_syscall_fault( ucontext_t *sigcontext, void *stack_ptr,
if (!is_inside_syscall( sigcontext ) && !ntdll_get_thread_data()->jmp_buf) return FALSE; if (!is_inside_syscall( sigcontext ) && !ntdll_get_thread_data()->jmp_buf) return FALSE;
TRACE( "code=%x flags=%x addr=%p ip=%08x tid=%04x\n", TRACE( "code=%lx flags=%lx addr=%p ip=%08lx\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress, context->Eip );
context->Eip, GetCurrentThreadId() );
for (i = 0; i < rec->NumberParameters; i++) for (i = 0; i < rec->NumberParameters; i++)
TRACE( " info[%d]=%08lx\n", i, rec->ExceptionInformation[i] ); TRACE( " info[%d]=%08lx\n", i, rec->ExceptionInformation[i] );
TRACE(" eax=%08x ebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x\n", TRACE(" eax=%08lx ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx\n",
context->Eax, context->Ebx, context->Ecx, context->Eax, context->Ebx, context->Ecx,
context->Edx, context->Esi, context->Edi ); context->Edx, context->Esi, context->Edi );
TRACE(" ebp=%08x esp=%08x cs=%04x ds=%04x es=%04x fs=%04x gs=%04x flags=%08x\n", TRACE(" ebp=%08lx esp=%08lx cs=%04lx ds=%04lx es=%04lx fs=%04lx gs=%04lx flags=%08lx\n",
context->Ebp, context->Esp, context->SegCs, context->SegDs, context->Ebp, context->Esp, context->SegCs, context->SegDs,
context->SegEs, context->SegFs, context->SegGs, context->EFlags ); context->SegEs, context->SegFs, context->SegGs, context->EFlags );
...@@ -1800,7 +1798,7 @@ static BOOL handle_syscall_fault( ucontext_t *sigcontext, void *stack_ptr, ...@@ -1800,7 +1798,7 @@ static BOOL handle_syscall_fault( ucontext_t *sigcontext, void *stack_ptr,
} }
else else
{ {
TRACE( "returning to user mode ip=%08x ret=%08x\n", frame->eip, rec->ExceptionCode ); TRACE( "returning to user mode ip=%08x ret=%08lx\n", frame->eip, rec->ExceptionCode );
stack = (UINT *)frame; stack = (UINT *)frame;
*(--stack) = rec->ExceptionCode; *(--stack) = rec->ExceptionCode;
*(--stack) = (UINT)frame; *(--stack) = (UINT)frame;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -324,11 +323,11 @@ NTSTATUS WINAPI NtQuerySemaphore( HANDLE handle, SEMAPHORE_INFORMATION_CLASS cla ...@@ -324,11 +323,11 @@ NTSTATUS WINAPI NtQuerySemaphore( HANDLE handle, SEMAPHORE_INFORMATION_CLASS cla
unsigned int ret; unsigned int ret;
SEMAPHORE_BASIC_INFORMATION *out = info; SEMAPHORE_BASIC_INFORMATION *out = info;
TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, len, ret_len); TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, (int)len, ret_len);
if (class != SemaphoreBasicInformation) if (class != SemaphoreBasicInformation)
{ {
FIXME("(%p,%d,%u) Unknown class\n", handle, class, len); FIXME("(%p,%d,%u) Unknown class\n", handle, class, (int)len);
return STATUS_INVALID_INFO_CLASS; return STATUS_INVALID_INFO_CLASS;
} }
...@@ -501,12 +500,11 @@ NTSTATUS WINAPI NtQueryEvent( HANDLE handle, EVENT_INFORMATION_CLASS class, ...@@ -501,12 +500,11 @@ NTSTATUS WINAPI NtQueryEvent( HANDLE handle, EVENT_INFORMATION_CLASS class,
unsigned int ret; unsigned int ret;
EVENT_BASIC_INFORMATION *out = info; EVENT_BASIC_INFORMATION *out = info;
TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, len, ret_len); TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, (int)len, ret_len);
if (class != EventBasicInformation) if (class != EventBasicInformation)
{ {
FIXME("(%p, %d, %d) Unknown class\n", FIXME("(%p, %d, %d) Unknown class\n", handle, class, (int)len);
handle, class, len);
return STATUS_INVALID_INFO_CLASS; return STATUS_INVALID_INFO_CLASS;
} }
...@@ -607,11 +605,11 @@ NTSTATUS WINAPI NtQueryMutant( HANDLE handle, MUTANT_INFORMATION_CLASS class, ...@@ -607,11 +605,11 @@ NTSTATUS WINAPI NtQueryMutant( HANDLE handle, MUTANT_INFORMATION_CLASS class,
unsigned int ret; unsigned int ret;
MUTANT_BASIC_INFORMATION *out = info; MUTANT_BASIC_INFORMATION *out = info;
TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, len, ret_len); TRACE("(%p, %u, %p, %u, %p)\n", handle, class, info, (int)len, ret_len);
if (class != MutantBasicInformation) if (class != MutantBasicInformation)
{ {
FIXME( "(%p, %d, %d) Unknown class\n", handle, class, len ); FIXME( "(%p, %d, %d) Unknown class\n", handle, class, (int)len );
return STATUS_INVALID_INFO_CLASS; return STATUS_INVALID_INFO_CLASS;
} }
...@@ -690,7 +688,7 @@ NTSTATUS WINAPI NtTerminateJobObject( HANDLE handle, NTSTATUS status ) ...@@ -690,7 +688,7 @@ NTSTATUS WINAPI NtTerminateJobObject( HANDLE handle, NTSTATUS status )
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p, %d)\n", handle, status ); TRACE( "(%p, %d)\n", handle, (int)status );
SERVER_START_REQ( terminate_job ) SERVER_START_REQ( terminate_job )
{ {
...@@ -712,7 +710,7 @@ NTSTATUS WINAPI NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS c ...@@ -712,7 +710,7 @@ NTSTATUS WINAPI NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS c
{ {
unsigned int ret; unsigned int ret;
TRACE( "semi-stub: %p %u %p %u %p\n", handle, class, info, len, ret_len ); TRACE( "semi-stub: %p %u %p %u %p\n", handle, class, info, (int)len, ret_len );
if (class >= MaxJobObjectInfoClass) return STATUS_INVALID_PARAMETER; if (class >= MaxJobObjectInfoClass) return STATUS_INVALID_PARAMETER;
...@@ -809,7 +807,7 @@ NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS cla ...@@ -809,7 +807,7 @@ NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS cla
ULONG info_size = sizeof(JOBOBJECT_BASIC_LIMIT_INFORMATION); ULONG info_size = sizeof(JOBOBJECT_BASIC_LIMIT_INFORMATION);
DWORD limit_flags = JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS; DWORD limit_flags = JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS;
TRACE( "(%p, %u, %p, %u)\n", handle, class, info, len ); TRACE( "(%p, %u, %p, %u)\n", handle, class, info, (int)len );
if (class >= MaxJobObjectInfoClass) return STATUS_INVALID_PARAMETER; if (class >= MaxJobObjectInfoClass) return STATUS_INVALID_PARAMETER;
...@@ -848,7 +846,7 @@ NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS cla ...@@ -848,7 +846,7 @@ NTSTATUS WINAPI NtSetInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS cla
status = STATUS_SUCCESS; status = STATUS_SUCCESS;
/* fall through */ /* fall through */
default: default:
FIXME( "stub: %p %u %p %u\n", handle, class, info, len ); FIXME( "stub: %p %u %p %u\n", handle, class, info, (int)len );
} }
return status; return status;
} }
...@@ -1325,7 +1323,7 @@ NTSTATUS WINAPI NtSetTimer( HANDLE handle, const LARGE_INTEGER *when, PTIMER_APC ...@@ -1325,7 +1323,7 @@ NTSTATUS WINAPI NtSetTimer( HANDLE handle, const LARGE_INTEGER *when, PTIMER_APC
{ {
unsigned int ret = STATUS_SUCCESS; unsigned int ret = STATUS_SUCCESS;
TRACE( "(%p,%p,%p,%p,%08x,0x%08x,%p)\n", handle, when, callback, arg, resume, period, state ); TRACE( "(%p,%p,%p,%p,%08x,0x%08x,%p)\n", handle, when, callback, arg, resume, (int)period, state );
SERVER_START_REQ( set_timer ) SERVER_START_REQ( set_timer )
{ {
...@@ -1373,7 +1371,7 @@ NTSTATUS WINAPI NtQueryTimer( HANDLE handle, TIMER_INFORMATION_CLASS class, ...@@ -1373,7 +1371,7 @@ NTSTATUS WINAPI NtQueryTimer( HANDLE handle, TIMER_INFORMATION_CLASS class,
unsigned int ret; unsigned int ret;
LARGE_INTEGER now; LARGE_INTEGER now;
TRACE( "(%p,%d,%p,0x%08x,%p)\n", handle, class, info, len, ret_len ); TRACE( "(%p,%d,%p,0x%08x,%p)\n", handle, class, info, (int)len, ret_len );
switch (class) switch (class)
{ {
...@@ -1599,7 +1597,7 @@ NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res ...@@ -1599,7 +1597,7 @@ NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res
{ {
static BOOL has_request = FALSE; static BOOL has_request = FALSE;
TRACE( "(%u,%u,%p), semi-stub!\n", res, set, current_res ); TRACE( "(%u,%u,%p), semi-stub!\n", (int)res, set, current_res );
/* Wine has no support for anything other that 1 ms and does not keep of /* Wine has no support for anything other that 1 ms and does not keep of
* track resolution requests anyway. * track resolution requests anyway.
...@@ -1625,7 +1623,7 @@ NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res ...@@ -1625,7 +1623,7 @@ NTSTATUS WINAPI NtSetTimerResolution( ULONG res, BOOLEAN set, ULONG *current_res
*/ */
NTSTATUS WINAPI NtSetIntervalProfile( ULONG interval, KPROFILE_SOURCE source ) NTSTATUS WINAPI NtSetIntervalProfile( ULONG interval, KPROFILE_SOURCE source )
{ {
FIXME( "%u,%d\n", interval, source ); FIXME( "%u,%d\n", (int)interval, source );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -1761,7 +1759,7 @@ NTSTATUS WINAPI NtCreateIoCompletion( HANDLE *handle, ACCESS_MASK access, OBJECT ...@@ -1761,7 +1759,7 @@ NTSTATUS WINAPI NtCreateIoCompletion( HANDLE *handle, ACCESS_MASK access, OBJECT
data_size_t len; data_size_t len;
struct object_attributes *objattr; struct object_attributes *objattr;
TRACE( "(%p, %x, %p, %d)\n", handle, access, attr, threads ); TRACE( "(%p, %x, %p, %d)\n", handle, (int)access, attr, (int)threads );
*handle = 0; *handle = 0;
if ((status = alloc_object_attributes( attr, &objattr, &len ))) return status; if ((status = alloc_object_attributes( attr, &objattr, &len ))) return status;
...@@ -1813,7 +1811,7 @@ NTSTATUS WINAPI NtSetIoCompletion( HANDLE handle, ULONG_PTR key, ULONG_PTR value ...@@ -1813,7 +1811,7 @@ NTSTATUS WINAPI NtSetIoCompletion( HANDLE handle, ULONG_PTR key, ULONG_PTR value
{ {
unsigned int ret; unsigned int ret;
TRACE( "(%p, %lx, %lx, %x, %lx)\n", handle, key, value, status, count ); TRACE( "(%p, %lx, %lx, %x, %lx)\n", handle, key, value, (int)status, count );
SERVER_START_REQ( add_completion ) SERVER_START_REQ( add_completion )
{ {
...@@ -1869,7 +1867,7 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE handle, FILE_IO_COMPLETION_INFORM ...@@ -1869,7 +1867,7 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE handle, FILE_IO_COMPLETION_INFORM
unsigned int status; unsigned int status;
ULONG i = 0; ULONG i = 0;
TRACE( "%p %p %u %p %p %u\n", handle, info, count, written, timeout, alertable ); TRACE( "%p %p %u %p %p %u\n", handle, info, (int)count, written, timeout, alertable );
for (;;) for (;;)
{ {
...@@ -1911,7 +1909,7 @@ NTSTATUS WINAPI NtQueryIoCompletion( HANDLE handle, IO_COMPLETION_INFORMATION_CL ...@@ -1911,7 +1909,7 @@ NTSTATUS WINAPI NtQueryIoCompletion( HANDLE handle, IO_COMPLETION_INFORMATION_CL
{ {
unsigned int status; unsigned int status;
TRACE( "(%p, %d, %p, 0x%x, %p)\n", handle, class, buffer, len, ret_len ); TRACE( "(%p, %d, %p, 0x%x, %p)\n", handle, class, buffer, (int)len, ret_len );
if (!buffer) return STATUS_INVALID_PARAMETER; if (!buffer) return STATUS_INVALID_PARAMETER;
...@@ -2026,7 +2024,7 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ ...@@ -2026,7 +2024,7 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_
NTSTATUS WINAPI NtCreatePort( HANDLE *handle, OBJECT_ATTRIBUTES *attr, ULONG info_len, NTSTATUS WINAPI NtCreatePort( HANDLE *handle, OBJECT_ATTRIBUTES *attr, ULONG info_len,
ULONG data_len, ULONG *reserved ) ULONG data_len, ULONG *reserved )
{ {
FIXME( "(%p,%p,%u,%u,%p),stub!\n", handle, attr, info_len, data_len, reserved ); FIXME( "(%p,%p,%u,%u,%p),stub!\n", handle, attr, (int)info_len, (int)data_len, reserved );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -2074,7 +2072,7 @@ NTSTATUS WINAPI NtListenPort( HANDLE handle, LPC_MESSAGE *msg ) ...@@ -2074,7 +2072,7 @@ NTSTATUS WINAPI NtListenPort( HANDLE handle, LPC_MESSAGE *msg )
NTSTATUS WINAPI NtAcceptConnectPort( HANDLE *handle, ULONG id, LPC_MESSAGE *msg, BOOLEAN accept, NTSTATUS WINAPI NtAcceptConnectPort( HANDLE *handle, ULONG id, LPC_MESSAGE *msg, BOOLEAN accept,
LPC_SECTION_WRITE *write, LPC_SECTION_READ *read ) LPC_SECTION_WRITE *write, LPC_SECTION_READ *read )
{ {
FIXME("(%p,%u,%p,%d,%p,%p),stub!\n", handle, id, msg, accept, write, read ); FIXME("(%p,%u,%p,%d,%p,%p),stub!\n", handle, (int)id, msg, accept, write, read );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -1172,7 +1171,7 @@ static NTSTATUS create_logical_proc_info(void) ...@@ -1172,7 +1171,7 @@ static NTSTATUS create_logical_proc_info(void)
*/ */
void init_cpu_info(void) void init_cpu_info(void)
{ {
NTSTATUS status; unsigned int status;
long num; long num;
#ifdef _SC_NPROCESSORS_ONLN #ifdef _SC_NPROCESSORS_ONLN
...@@ -1199,8 +1198,8 @@ void init_cpu_info(void) ...@@ -1199,8 +1198,8 @@ void init_cpu_info(void)
peb->NumberOfProcessors = num; peb->NumberOfProcessors = num;
get_cpuinfo( &cpu_info ); get_cpuinfo( &cpu_info );
TRACE( "<- CPU arch %d, level %d, rev %d, features 0x%x\n", TRACE( "<- CPU arch %d, level %d, rev %d, features 0x%x\n",
cpu_info.ProcessorArchitecture, cpu_info.ProcessorLevel, cpu_info.ProcessorRevision, (int)cpu_info.ProcessorArchitecture, (int)cpu_info.ProcessorLevel,
cpu_info.ProcessorFeatureBits ); (int)cpu_info.ProcessorRevision, (int)cpu_info.ProcessorFeatureBits );
if ((status = create_logical_proc_info())) if ((status = create_logical_proc_info()))
{ {
...@@ -1616,7 +1615,7 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON ...@@ -1616,7 +1615,7 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON
&bios_args, &system_args, &board_args, &chassis_args ); &bios_args, &system_args, &board_args, &chassis_args );
} }
default: default:
FIXME("info_class SYSTEM_FIRMWARE_TABLE_INFORMATION provider %08x\n", sfti->ProviderSignature); FIXME("info_class SYSTEM_FIRMWARE_TABLE_INFORMATION provider %08x\n", (int)sfti->ProviderSignature);
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
} }
...@@ -2195,19 +2194,19 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char* ...@@ -2195,19 +2194,19 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
reg_tzi.StandardDate = tz_data.std_date; reg_tzi.StandardDate = tz_data.std_date;
reg_tzi.DaylightDate = tz_data.dlt_date; reg_tzi.DaylightDate = tz_data.dlt_date;
TRACE("%s: bias %d\n", debugstr_us(&nameW), reg_tzi.Bias); TRACE("%s: bias %d\n", debugstr_us(&nameW), (int)reg_tzi.Bias);
TRACE("std (d/m/y): %u/%02u/%04u day of week %u %u:%02u:%02u.%03u bias %d\n", TRACE("std (d/m/y): %u/%02u/%04u day of week %u %u:%02u:%02u.%03u bias %d\n",
reg_tzi.StandardDate.wDay, reg_tzi.StandardDate.wMonth, reg_tzi.StandardDate.wDay, reg_tzi.StandardDate.wMonth,
reg_tzi.StandardDate.wYear, reg_tzi.StandardDate.wDayOfWeek, reg_tzi.StandardDate.wYear, reg_tzi.StandardDate.wDayOfWeek,
reg_tzi.StandardDate.wHour, reg_tzi.StandardDate.wMinute, reg_tzi.StandardDate.wHour, reg_tzi.StandardDate.wMinute,
reg_tzi.StandardDate.wSecond, reg_tzi.StandardDate.wMilliseconds, reg_tzi.StandardDate.wSecond, reg_tzi.StandardDate.wMilliseconds,
reg_tzi.StandardBias); (int)reg_tzi.StandardBias);
TRACE("dst (d/m/y): %u/%02u/%04u day of week %u %u:%02u:%02u.%03u bias %d\n", TRACE("dst (d/m/y): %u/%02u/%04u day of week %u %u:%02u:%02u.%03u bias %d\n",
reg_tzi.DaylightDate.wDay, reg_tzi.DaylightDate.wMonth, reg_tzi.DaylightDate.wDay, reg_tzi.DaylightDate.wMonth,
reg_tzi.DaylightDate.wYear, reg_tzi.DaylightDate.wDayOfWeek, reg_tzi.DaylightDate.wYear, reg_tzi.DaylightDate.wDayOfWeek,
reg_tzi.DaylightDate.wHour, reg_tzi.DaylightDate.wMinute, reg_tzi.DaylightDate.wHour, reg_tzi.DaylightDate.wMinute,
reg_tzi.DaylightDate.wSecond, reg_tzi.DaylightDate.wMilliseconds, reg_tzi.DaylightDate.wSecond, reg_tzi.DaylightDate.wMilliseconds,
reg_tzi.DaylightBias); (int)reg_tzi.DaylightBias);
if (match_tz_info( tzi, &reg_tzi ) && match_tz_name( tz_name, &reg_tzi )) if (match_tz_info( tzi, &reg_tzi ) && match_tz_name( tz_name, &reg_tzi ))
{ {
...@@ -2225,7 +2224,7 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char* ...@@ -2225,7 +2224,7 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
FIXME("Can't find matching timezone information in the registry for " FIXME("Can't find matching timezone information in the registry for "
"%s, bias %d, std (d/m/y): %u/%02u/%04u, dlt (d/m/y): %u/%02u/%04u\n", "%s, bias %d, std (d/m/y): %u/%02u/%04u, dlt (d/m/y): %u/%02u/%04u\n",
tz_name, tzi->Bias, tz_name, (int)tzi->Bias,
tzi->StandardDate.wDay, tzi->StandardDate.wMonth, tzi->StandardDate.wYear, tzi->StandardDate.wDay, tzi->StandardDate.wMonth, tzi->StandardDate.wYear,
tzi->DaylightDate.wDay, tzi->DaylightDate.wMonth, tzi->DaylightDate.wYear); tzi->DaylightDate.wDay, tzi->DaylightDate.wMonth, tzi->DaylightDate.wYear);
} }
...@@ -2340,7 +2339,7 @@ static void get_timezone_info( RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi ) ...@@ -2340,7 +2339,7 @@ static void get_timezone_info( RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi )
tzi->DaylightDate.wYear, tzi->DaylightDate.wDayOfWeek, tzi->DaylightDate.wYear, tzi->DaylightDate.wDayOfWeek,
tzi->DaylightDate.wHour, tzi->DaylightDate.wMinute, tzi->DaylightDate.wHour, tzi->DaylightDate.wMinute,
tzi->DaylightDate.wSecond, tzi->DaylightDate.wMilliseconds, tzi->DaylightDate.wSecond, tzi->DaylightDate.wMilliseconds,
tzi->DaylightBias); (int)tzi->DaylightBias);
tmp = std - tzi->Bias * 60 - tzi->DaylightBias * 60; tmp = std - tzi->Bias * 60 - tzi->DaylightBias * 60;
tm = gmtime(&tmp); tm = gmtime(&tmp);
...@@ -2361,7 +2360,7 @@ static void get_timezone_info( RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi ) ...@@ -2361,7 +2360,7 @@ static void get_timezone_info( RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi )
tzi->StandardDate.wYear, tzi->StandardDate.wDayOfWeek, tzi->StandardDate.wYear, tzi->StandardDate.wDayOfWeek,
tzi->StandardDate.wHour, tzi->StandardDate.wMinute, tzi->StandardDate.wHour, tzi->StandardDate.wMinute,
tzi->StandardDate.wSecond, tzi->StandardDate.wMilliseconds, tzi->StandardDate.wSecond, tzi->StandardDate.wMilliseconds,
tzi->StandardBias); (int)tzi->StandardBias);
} }
find_reg_tz_info(tzi, tz_name, current_year + 1900); find_reg_tz_info(tzi, tz_name, current_year + 1900);
...@@ -2518,7 +2517,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, ...@@ -2518,7 +2517,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
unsigned int ret = STATUS_SUCCESS; unsigned int ret = STATUS_SUCCESS;
ULONG len = 0; ULONG len = 0;
TRACE( "(0x%08x,%p,0x%08x,%p)\n", class, info, size, ret_size ); TRACE( "(0x%08x,%p,0x%08x,%p)\n", class, info, (int)size, ret_size );
switch (class) switch (class)
{ {
...@@ -3139,7 +3138,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, ...@@ -3139,7 +3138,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
{ {
SYSTEM_CODEINTEGRITY_INFORMATION *integrity_info = info; SYSTEM_CODEINTEGRITY_INFORMATION *integrity_info = info;
FIXME("SystemCodeIntegrityInformation, size %u, info %p, stub!\n", size, info); FIXME("SystemCodeIntegrityInformation, size %u, info %p, stub!\n", (int)size, info);
len = sizeof(SYSTEM_CODEINTEGRITY_INFORMATION); len = sizeof(SYSTEM_CODEINTEGRITY_INFORMATION);
...@@ -3186,7 +3185,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, ...@@ -3186,7 +3185,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
} }
default: default:
FIXME( "(0x%08x,%p,0x%08x,%p) stub\n", class, info, size, ret_size ); FIXME( "(0x%08x,%p,0x%08x,%p) stub\n", class, info, (int)size, ret_size );
/* Several Information Classes are not implemented on Windows and return 2 different values /* Several Information Classes are not implemented on Windows and return 2 different values
* STATUS_NOT_IMPLEMENTED or STATUS_INVALID_INFO_CLASS * STATUS_NOT_IMPLEMENTED or STATUS_INVALID_INFO_CLASS
...@@ -3210,7 +3209,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, ...@@ -3210,7 +3209,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class,
ULONG len = 0; ULONG len = 0;
unsigned int ret = STATUS_NOT_IMPLEMENTED; unsigned int ret = STATUS_NOT_IMPLEMENTED;
TRACE( "(0x%08x,%p,%u,%p,%u,%p) stub\n", class, query, query_len, info, size, ret_size ); TRACE( "(0x%08x,%p,%u,%p,%u,%p) stub\n", class, query, (int)query_len, info, (int)size, ret_size );
switch (class) switch (class)
{ {
...@@ -3311,7 +3310,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, ...@@ -3311,7 +3310,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class,
} }
default: default:
FIXME( "(0x%08x,%p,%u,%p,%u,%p) stub\n", class, query, query_len, info, size, ret_size ); FIXME( "(0x%08x,%p,%u,%p,%u,%p) stub\n", class, query, (int)query_len, info, (int)size, ret_size );
break; break;
} }
if (ret_size) *ret_size = len; if (ret_size) *ret_size = len;
...@@ -3324,7 +3323,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, ...@@ -3324,7 +3323,7 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class,
*/ */
NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, ULONG length ) NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *info, ULONG length )
{ {
FIXME( "(0x%08x,%p,0x%08x) stub\n", class, info, length ); FIXME( "(0x%08x,%p,0x%08x) stub\n", class, info, (int)length );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -3335,7 +3334,7 @@ NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *in ...@@ -3335,7 +3334,7 @@ NTSTATUS WINAPI NtSetSystemInformation( SYSTEM_INFORMATION_CLASS class, void *in
NTSTATUS WINAPI NtQuerySystemEnvironmentValue( UNICODE_STRING *name, WCHAR *buffer, ULONG length, NTSTATUS WINAPI NtQuerySystemEnvironmentValue( UNICODE_STRING *name, WCHAR *buffer, ULONG length,
ULONG *retlen ) ULONG *retlen )
{ {
FIXME( "(%s, %p, %u, %p), stub\n", debugstr_us(name), buffer, length, retlen ); FIXME( "(%s, %p, %u, %p), stub\n", debugstr_us(name), buffer, (int)length, retlen );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -3358,7 +3357,8 @@ NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx( UNICODE_STRING *name, GUID *ven ...@@ -3358,7 +3357,8 @@ NTSTATUS WINAPI NtQuerySystemEnvironmentValueEx( UNICODE_STRING *name, GUID *ven
NTSTATUS WINAPI NtSystemDebugControl( SYSDBG_COMMAND command, void *in_buff, ULONG in_len, NTSTATUS WINAPI NtSystemDebugControl( SYSDBG_COMMAND command, void *in_buff, ULONG in_len,
void *out_buff, ULONG out_len, ULONG *retlen ) void *out_buff, ULONG out_len, ULONG *retlen )
{ {
FIXME( "(%d, %p, %d, %p, %d, %p), stub\n", command, in_buff, in_len, out_buff, out_len, retlen ); FIXME( "(%d, %p, %d, %p, %d, %p), stub\n",
command, in_buff, (int)in_len, out_buff, (int)out_len, retlen );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -3612,7 +3612,7 @@ static NTSTATUS fill_battery_state( SYSTEM_BATTERY_STATE *bs ) ...@@ -3612,7 +3612,7 @@ static NTSTATUS fill_battery_state( SYSTEM_BATTERY_STATE *bs )
NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, ULONG in_size, NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, ULONG in_size,
void *output, ULONG out_size ) void *output, ULONG out_size )
{ {
TRACE( "(%d,%p,%d,%p,%d)\n", level, input, in_size, output, out_size ); TRACE( "(%d,%p,%d,%p,%d)\n", level, input, (int)in_size, output, (int)out_size );
switch (level) switch (level)
{ {
case SystemPowerCapabilities: case SystemPowerCapabilities:
...@@ -3778,9 +3778,9 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input, ...@@ -3778,9 +3778,9 @@ NTSTATUS WINAPI NtPowerInformation( POWER_INFORMATION_LEVEL level, void *input,
WARN("Unable to detect CPU MHz for this platform. Reporting %d MHz.\n", cannedMHz); WARN("Unable to detect CPU MHz for this platform. Reporting %d MHz.\n", cannedMHz);
#endif #endif
for(i = 0; i < out_cpus; i++) { for(i = 0; i < out_cpus; i++) {
TRACE("cpu_power[%d] = %u %u %u %u %u %u\n", i, cpu_power[i].Number, TRACE("cpu_power[%d] = %u %u %u %u %u %u\n", i, (int)cpu_power[i].Number,
cpu_power[i].MaxMhz, cpu_power[i].CurrentMhz, cpu_power[i].MhzLimit, (int)cpu_power[i].MaxMhz, (int)cpu_power[i].CurrentMhz, (int)cpu_power[i].MhzLimit,
cpu_power[i].MaxIdleState, cpu_power[i].CurrentIdleState); (int)cpu_power[i].MaxIdleState, (int)cpu_power[i].CurrentIdleState);
} }
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
...@@ -3830,7 +3830,7 @@ NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count, ...@@ -3830,7 +3830,7 @@ NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count,
UNICODE_STRING *params_mask, void **params, UNICODE_STRING *params_mask, void **params,
HARDERROR_RESPONSE_OPTION option, HARDERROR_RESPONSE *response ) HARDERROR_RESPONSE_OPTION option, HARDERROR_RESPONSE *response )
{ {
FIXME( "%08x stub\n", status ); FIXME( "%08x stub\n", (int)status );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -3841,7 +3841,7 @@ NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count, ...@@ -3841,7 +3841,7 @@ NTSTATUS WINAPI NtRaiseHardError( NTSTATUS status, ULONG count,
NTSTATUS WINAPI NtInitiatePowerAction( POWER_ACTION action, SYSTEM_POWER_STATE state, NTSTATUS WINAPI NtInitiatePowerAction( POWER_ACTION action, SYSTEM_POWER_STATE state,
ULONG flags, BOOLEAN async ) ULONG flags, BOOLEAN async )
{ {
FIXME( "(%d,%d,0x%08x,%d),stub\n", action, state, flags, async ); FIXME( "(%d,%d,0x%08x,%d),stub\n", action, state, (int)flags, async );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -3853,7 +3853,7 @@ NTSTATUS WINAPI NtSetThreadExecutionState( EXECUTION_STATE new_state, EXECUTION_ ...@@ -3853,7 +3853,7 @@ NTSTATUS WINAPI NtSetThreadExecutionState( EXECUTION_STATE new_state, EXECUTION_
{ {
static EXECUTION_STATE current = ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_USER_PRESENT; static EXECUTION_STATE current = ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_USER_PRESENT;
WARN( "(0x%x, %p): stub, harmless.\n", new_state, old_state ); WARN( "(0x%x, %p): stub, harmless.\n", (int)new_state, old_state );
*old_state = current; *old_state = current;
if (!(current & ES_CONTINUOUS) || (new_state & ES_CONTINUOUS)) current = new_state; if (!(current & ES_CONTINUOUS) || (new_state & ES_CONTINUOUS)) current = new_state;
return STATUS_SUCCESS; return STATUS_SUCCESS;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -110,7 +109,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, const TAPE_CREATE_PARTITION *data ...@@ -110,7 +109,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, const TAPE_CREATE_PARTITION *data
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d method: 0x%08x count: 0x%08x size: 0x%08x\n", TRACE( "fd: %d method: 0x%08x count: 0x%08x size: 0x%08x\n",
fd, data->Method, data->Count, data->Size ); fd, (int)data->Method, (int)data->Count, (int)data->Size );
if (data->Count > 1) if (data->Count > 1)
{ {
...@@ -132,7 +131,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, const TAPE_CREATE_PARTITION *data ...@@ -132,7 +131,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, const TAPE_CREATE_PARTITION *data
break; break;
#endif #endif
default: default:
ERR( "Unhandled method: 0x%08x\n", data->Method ); ERR( "Unhandled method: 0x%08x\n", (int)data->Method );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
...@@ -152,7 +151,7 @@ static NTSTATUS TAPE_Erase( int fd, const TAPE_ERASE *data ) ...@@ -152,7 +151,7 @@ static NTSTATUS TAPE_Erase( int fd, const TAPE_ERASE *data )
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d type: 0x%08x immediate: 0x%02x\n", TRACE( "fd: %d type: 0x%08x immediate: 0x%02x\n",
fd, data->Type, data->Immediate ); fd, (int)data->Type, (int)data->Immediate );
switch (data->Type) switch (data->Type)
{ {
...@@ -165,7 +164,7 @@ static NTSTATUS TAPE_Erase( int fd, const TAPE_ERASE *data ) ...@@ -165,7 +164,7 @@ static NTSTATUS TAPE_Erase( int fd, const TAPE_ERASE *data )
cmd.mt_count = 0; cmd.mt_count = 0;
break; break;
default: default:
ERR( "Unhandled type: 0x%08x\n", data->Type ); ERR( "Unhandled type: 0x%08x\n", (int)data->Type );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
...@@ -313,7 +312,7 @@ static NTSTATUS TAPE_Prepare( int fd, const TAPE_PREPARE *data ) ...@@ -313,7 +312,7 @@ static NTSTATUS TAPE_Prepare( int fd, const TAPE_PREPARE *data )
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d type: 0x%08x immediate: 0x%02x\n", TRACE( "fd: %d type: 0x%08x immediate: 0x%02x\n",
fd, data->Operation, data->Immediate ); fd, (int)data->Operation, (int)data->Immediate );
switch (data->Operation) switch (data->Operation)
{ {
...@@ -346,7 +345,7 @@ static NTSTATUS TAPE_Prepare( int fd, const TAPE_PREPARE *data ) ...@@ -346,7 +345,7 @@ static NTSTATUS TAPE_Prepare( int fd, const TAPE_PREPARE *data )
/* Native ignores this if the drive doesn't support it */ /* Native ignores this if the drive doesn't support it */
return STATUS_SUCCESS; return STATUS_SUCCESS;
default: default:
ERR( "Unhandled operation: 0x%08x\n", data->Operation ); ERR( "Unhandled operation: 0x%08x\n", (int)data->Operation );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
...@@ -368,7 +367,7 @@ static NTSTATUS TAPE_SetDriveParams( int fd, const TAPE_SET_DRIVE_PARAMETERS *da ...@@ -368,7 +367,7 @@ static NTSTATUS TAPE_SetDriveParams( int fd, const TAPE_SET_DRIVE_PARAMETERS *da
TRACE( "fd: %d ECC: 0x%02x, compression: 0x%02x padding: 0x%02x\n", TRACE( "fd: %d ECC: 0x%02x, compression: 0x%02x padding: 0x%02x\n",
fd, data->ECC, data->Compression, data->DataPadding ); fd, data->ECC, data->Compression, data->DataPadding );
TRACE( "setmarks: 0x%02x zonesize: 0x%08x\n", TRACE( "setmarks: 0x%02x zonesize: 0x%08x\n",
data->ReportSetmarks, data->EOTWarningZoneSize ); (int)data->ReportSetmarks, (int)data->EOTWarningZoneSize );
if (data->ECC || data->DataPadding || data->ReportSetmarks || if (data->ECC || data->DataPadding || data->ReportSetmarks ||
data->EOTWarningZoneSize ) WARN( "Setting not supported\n" ); data->EOTWarningZoneSize ) WARN( "Setting not supported\n" );
...@@ -391,7 +390,7 @@ static NTSTATUS TAPE_SetMediaParams( int fd, const TAPE_SET_MEDIA_PARAMETERS *da ...@@ -391,7 +390,7 @@ static NTSTATUS TAPE_SetMediaParams( int fd, const TAPE_SET_MEDIA_PARAMETERS *da
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d blocksize: 0x%08x\n", fd, data->BlockSize ); TRACE( "fd: %d blocksize: 0x%08x\n", fd, (int)data->BlockSize );
cmd.mt_op = MTSETBLK; cmd.mt_op = MTSETBLK;
cmd.mt_count = data->BlockSize; cmd.mt_count = data->BlockSize;
...@@ -412,7 +411,7 @@ static NTSTATUS TAPE_SetPosition( int fd, const TAPE_SET_POSITION *data ) ...@@ -412,7 +411,7 @@ static NTSTATUS TAPE_SetPosition( int fd, const TAPE_SET_POSITION *data )
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d method: 0x%08x partition: 0x%08x offset: 0x%s immediate: 0x%02x\n", TRACE( "fd: %d method: 0x%08x partition: 0x%08x offset: 0x%s immediate: 0x%02x\n",
fd, data->Method, data->Partition, wine_dbgstr_longlong(data->Offset.QuadPart), fd, (int)data->Method, (int)data->Partition, wine_dbgstr_longlong(data->Offset.QuadPart),
data->Immediate ); data->Immediate );
if (sizeof(cmd.mt_count) < sizeof(data->Offset.QuadPart) && if (sizeof(cmd.mt_count) < sizeof(data->Offset.QuadPart) &&
...@@ -468,7 +467,7 @@ static NTSTATUS TAPE_SetPosition( int fd, const TAPE_SET_POSITION *data ) ...@@ -468,7 +467,7 @@ static NTSTATUS TAPE_SetPosition( int fd, const TAPE_SET_POSITION *data )
WARN( "Positioning method not supported\n" ); WARN( "Positioning method not supported\n" );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
default: default:
ERR( "Unhandled method: 0x%08x\n", data->Method ); ERR( "Unhandled method: 0x%08x\n", (int)data->Method );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
...@@ -488,7 +487,7 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data ) ...@@ -488,7 +487,7 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data )
struct mtop cmd; struct mtop cmd;
TRACE( "fd: %d type: 0x%08x count: 0x%08x immediate: 0x%02x\n", TRACE( "fd: %d type: 0x%08x count: 0x%08x immediate: 0x%02x\n",
fd, data->Type, data->Count, data->Immediate ); fd, (int)data->Type, (int)data->Count, data->Immediate );
switch (data->Type) switch (data->Type)
{ {
...@@ -505,7 +504,7 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data ) ...@@ -505,7 +504,7 @@ static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data )
cmd.mt_count = data->Count; cmd.mt_count = data->Count;
break; break;
default: default:
ERR( "Unhandled type: 0x%08x\n", data->Type ); ERR( "Unhandled type: 0x%08x\n", (int)data->Type );
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
} }
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#if 0 #if 0
#pragma makedep unix #pragma makedep unix
#endif #endif
#define WINE_NO_LONG_TYPES
#include "config.h" #include "config.h"
...@@ -1235,7 +1234,8 @@ NTSTATUS WINAPI NtCreateThread( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRI ...@@ -1235,7 +1234,8 @@ NTSTATUS WINAPI NtCreateThread( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRI
HANDLE process, CLIENT_ID *id, CONTEXT *ctx, INITIAL_TEB *teb, HANDLE process, CLIENT_ID *id, CONTEXT *ctx, INITIAL_TEB *teb,
BOOLEAN suspended ) BOOLEAN suspended )
{ {
FIXME( "%p %d %p %p %p %p %p %d, stub!\n", handle, access, attr, process, id, ctx, teb, suspended ); FIXME( "%p %d %p %p %p %p %p %d, stub!\n",
handle, (int)access, attr, process, id, ctx, teb, suspended );
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
...@@ -1260,7 +1260,7 @@ NTSTATUS WINAPI NtCreateThreadEx( HANDLE *handle, ACCESS_MASK access, OBJECT_ATT ...@@ -1260,7 +1260,7 @@ NTSTATUS WINAPI NtCreateThreadEx( HANDLE *handle, ACCESS_MASK access, OBJECT_ATT
unsigned int status; unsigned int status;
if (flags & ~supported_flags) if (flags & ~supported_flags)
FIXME( "Unsupported flags %#x.\n", flags ); FIXME( "Unsupported flags %#x.\n", (int)flags );
if (zero_bits > 21 && zero_bits < 32) return STATUS_INVALID_PARAMETER_3; if (zero_bits > 21 && zero_bits < 32) return STATUS_INVALID_PARAMETER_3;
#ifndef _WIN64 #ifndef _WIN64
...@@ -1523,7 +1523,7 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL ...@@ -1523,7 +1523,7 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
ERR_(seh)("Process attempted to continue execution after noncontinuable exception.\n"); ERR_(seh)("Process attempted to continue execution after noncontinuable exception.\n");
else else
ERR_(seh)("Unhandled exception code %x flags %x addr %p\n", ERR_(seh)("Unhandled exception code %x flags %x addr %p\n",
rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress ); (int)rec->ExceptionCode, (int)rec->ExceptionFlags, rec->ExceptionAddress );
NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode ); NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode );
return STATUS_SUCCESS; return STATUS_SUCCESS;
...@@ -1947,7 +1947,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, ...@@ -1947,7 +1947,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
{ {
unsigned int status; unsigned int status;
TRACE("(%p,%d,%p,%x,%p)\n", handle, class, data, length, ret_len); TRACE("(%p,%d,%p,%x,%p)\n", handle, class, data, (int)length, ret_len);
switch (class) switch (class)
{ {
...@@ -2204,7 +2204,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class, ...@@ -2204,7 +2204,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
{ {
unsigned int status; unsigned int status;
TRACE("(%p,%d,%p,%x)\n", handle, class, data, length); TRACE("(%p,%d,%p,%x)\n", handle, class, data, (int)length);
switch (class) switch (class)
{ {
...@@ -2336,7 +2336,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class, ...@@ -2336,7 +2336,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
if (handle == GetCurrentThread() || (!status && (HandleToULong(tbi.ClientId.UniqueThread) == GetCurrentThreadId()))) if (handle == GetCurrentThread() || (!status && (HandleToULong(tbi.ClientId.UniqueThread) == GetCurrentThreadId())))
WARN_(threadname)( "Thread renamed to %s\n", debugstr_us(&info->ThreadName) ); WARN_(threadname)( "Thread renamed to %s\n", debugstr_us(&info->ThreadName) );
else if (!status) else if (!status)
WARN_(threadname)( "Thread ID %04x renamed to %s\n", HandleToULong( tbi.ClientId.UniqueThread ), debugstr_us(&info->ThreadName) ); WARN_(threadname)( "Thread ID %04x renamed to %s\n", (int)HandleToULong( tbi.ClientId.UniqueThread ), debugstr_us(&info->ThreadName) );
else else
WARN_(threadname)( "Thread handle %p renamed to %s\n", handle, debugstr_us(&info->ThreadName) ); WARN_(threadname)( "Thread handle %p renamed to %s\n", handle, debugstr_us(&info->ThreadName) );
...@@ -2423,7 +2423,7 @@ ULONG WINAPI NtGetCurrentProcessorNumber(void) ...@@ -2423,7 +2423,7 @@ ULONG WINAPI NtGetCurrentProcessorNumber(void)
{ {
if (thread_mask != processor_mask) if (thread_mask != processor_mask)
FIXME( "need multicore support (%d processors)\n", FIXME( "need multicore support (%d processors)\n",
peb->NumberOfProcessors ); (int)peb->NumberOfProcessors );
return processor; return processor;
} }
} }
...@@ -2444,7 +2444,7 @@ NTSTATUS WINAPI NtGetNextThread( HANDLE process, HANDLE thread, ACCESS_MASK acce ...@@ -2444,7 +2444,7 @@ NTSTATUS WINAPI NtGetNextThread( HANDLE process, HANDLE thread, ACCESS_MASK acce
unsigned int ret; unsigned int ret;
TRACE( "process %p, thread %p, access %#x, attributes %#x, flags %#x, handle %p.\n", TRACE( "process %p, thread %p, access %#x, attributes %#x, flags %#x, handle %p.\n",
process, thread, access, attributes, flags, handle ); process, thread, (int)access, (int)attributes, (int)flags, handle );
SERVER_START_REQ( get_next_thread ) SERVER_START_REQ( get_next_thread )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment