Commit 72e64f53 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wnaspi32: Win64 printf format warning fixes.

parent 01ab17f0
...@@ -5,7 +5,6 @@ VPATH = @srcdir@ ...@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE = wnaspi32.dll MODULE = wnaspi32.dll
IMPORTLIB = libwnaspi32.$(IMPLIBEXT) IMPORTLIB = libwnaspi32.$(IMPLIBEXT)
IMPORTS = advapi32 kernel32 IMPORTS = advapi32 kernel32
EXTRADEFS = -DWINE_NO_LONG_AS_INT
C_SRCS = \ C_SRCS = \
aspi.c \ aspi.c \
......
...@@ -142,7 +142,7 @@ int ASPI_GetNumControllers() ...@@ -142,7 +142,7 @@ int ASPI_GetNumControllers()
} }
RegCloseKey(hkeyScsi); RegCloseKey(hkeyScsi);
TRACE("Returning %ld host adapters\n", num_ha ); TRACE("Returning %d host adapters\n", num_ha );
return num_ha; return num_ha;
} }
...@@ -301,11 +301,11 @@ SCSI_LinuxDeviceIo( int fd, ...@@ -301,11 +301,11 @@ SCSI_LinuxDeviceIo( int fd,
{ {
set_last_error(); set_last_error();
save_error = GetLastError(); save_error = GetLastError();
WARN("Not enough bytes written to scsi device. bytes=%ld .. %ld\n", cbInBuffer, dwBytes ); WARN("Not enough bytes written to scsi device. bytes=%d .. %d\n", cbInBuffer, dwBytes );
/* FIXME: set_last_error() never sets error to ERROR_NOT_ENOUGH_MEMORY... */ /* FIXME: set_last_error() never sets error to ERROR_NOT_ENOUGH_MEMORY... */
if( save_error == ERROR_NOT_ENOUGH_MEMORY ) if( save_error == ERROR_NOT_ENOUGH_MEMORY )
MESSAGE("Your Linux kernel was not able to handle the amount of data sent to the scsi device. Try recompiling with a larger SG_BIG_BUFF value (kernel 2.0.x sg.h)"); MESSAGE("Your Linux kernel was not able to handle the amount of data sent to the scsi device. Try recompiling with a larger SG_BIG_BUFF value (kernel 2.0.x sg.h)");
WARN("error= %ld\n", save_error ); WARN("error= %d\n", save_error );
*lpcbBytesReturned = 0; *lpcbBytesReturned = 0;
return FALSE; return FALSE;
} }
...@@ -316,8 +316,8 @@ SCSI_LinuxDeviceIo( int fd, ...@@ -316,8 +316,8 @@ SCSI_LinuxDeviceIo( int fd,
{ {
set_last_error(); set_last_error();
save_error = GetLastError(); save_error = GetLastError();
WARN("Not enough bytes read from scsi device. bytes=%ld .. %ld\n", cbOutBuffer, *lpcbBytesReturned); WARN("Not enough bytes read from scsi device. bytes=%d .. %d\n", cbOutBuffer, *lpcbBytesReturned);
WARN("error= %ld\n", save_error ); WARN("error= %d\n", save_error );
return FALSE; return FALSE;
} }
return TRUE; return TRUE;
......
...@@ -166,12 +166,12 @@ ASPI_DebugPrintCmd(SRB_ExecSCSICmd16 *prb, UINT16 mode) ...@@ -166,12 +166,12 @@ ASPI_DebugPrintCmd(SRB_ExecSCSICmd16 *prb, UINT16 mode)
TRACE("\tPosting %s\n", prb->SRB_Flags & 0x1 ? "enabled" : "disabled"); TRACE("\tPosting %s\n", prb->SRB_Flags & 0x1 ? "enabled" : "disabled");
TRACE("Target: %d\n", prb->SRB_Target); TRACE("Target: %d\n", prb->SRB_Target);
TRACE("Lun: %d\n", prb->SRB_Lun); TRACE("Lun: %d\n", prb->SRB_Lun);
TRACE("BufLen: %ld\n", prb->SRB_BufLen); TRACE("BufLen: %d\n", prb->SRB_BufLen);
TRACE("SenseLen: %d\n", prb->SRB_SenseLen); TRACE("SenseLen: %d\n", prb->SRB_SenseLen);
TRACE("BufPtr: %lx (%p)\n", prb->SRB_BufPointer, lpBuf); TRACE("BufPtr: %x (%p)\n", prb->SRB_BufPointer, lpBuf);
TRACE("LinkPointer %lx\n", prb->SRB_Rsvd1); TRACE("LinkPointer %x\n", prb->SRB_Rsvd1);
TRACE("CDB Length: %d\n", prb->SRB_CDBLen); TRACE("CDB Length: %d\n", prb->SRB_CDBLen);
TRACE("POST Proc: %lx\n", (DWORD) prb->SRB_PostProc); TRACE("POST Proc: %x\n", (DWORD) prb->SRB_PostProc);
cdb = &prb->CDBByte[0]; cdb = &prb->CDBByte[0];
cmd = prb->CDBByte[0]; cmd = prb->CDBByte[0];
if (TRACE_ON(aspi)) if (TRACE_ON(aspi))
...@@ -328,7 +328,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode) ...@@ -328,7 +328,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
/* now do posting */ /* now do posting */
if (ASPI_POSTING(lpPRB) && lpPRB->SRB_PostProc) { if (ASPI_POSTING(lpPRB) && lpPRB->SRB_PostProc) {
TRACE("Post Routine (%lx) called\n", (DWORD) lpPRB->SRB_PostProc); TRACE("Post Routine (%x) called\n", (DWORD) lpPRB->SRB_PostProc);
switch (mode) switch (mode)
{ {
case ASPI_DOS: case ASPI_DOS:
......
...@@ -179,7 +179,7 @@ ASPI_DebugPrintCmd(SRB_ExecSCSICmd *prb) ...@@ -179,7 +179,7 @@ ASPI_DebugPrintCmd(SRB_ExecSCSICmd *prb)
TRACE("\tPosting %s\n", prb->SRB_Flags & 0x1 ? "enabled" : "disabled"); TRACE("\tPosting %s\n", prb->SRB_Flags & 0x1 ? "enabled" : "disabled");
TRACE("Target: %d\n", prb->SRB_Target); TRACE("Target: %d\n", prb->SRB_Target);
TRACE("Lun: %d\n", prb->SRB_Lun); TRACE("Lun: %d\n", prb->SRB_Lun);
TRACE("BufLen: %ld\n", prb->SRB_BufLen); TRACE("BufLen: %d\n", prb->SRB_BufLen);
TRACE("SenseLen: %d\n", prb->SRB_SenseLen); TRACE("SenseLen: %d\n", prb->SRB_SenseLen);
TRACE("BufPtr: %p\n", prb->SRB_BufPointer); TRACE("BufPtr: %p\n", prb->SRB_BufPointer);
TRACE("CDB Length: %d\n", prb->SRB_CDBLen); TRACE("CDB Length: %d\n", prb->SRB_CDBLen);
...@@ -338,7 +338,7 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB) ...@@ -338,7 +338,7 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
((lpPRB->SRB_Flags & 0x18) == 0x18) ((lpPRB->SRB_Flags & 0x18) == 0x18)
) && lpPRB->SRB_BufLen ) && lpPRB->SRB_BufLen
) { ) {
FIXME("command 0x%02x, no data transfer specified, but buflen is %ld!!!\n",lpPRB->CDBByte[0],lpPRB->SRB_BufLen); FIXME("command 0x%02x, no data transfer specified, but buflen is %d!!!\n",lpPRB->CDBByte[0],lpPRB->SRB_BufLen);
} }
break; break;
} }
......
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