Commit 78cd2003 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: hv: StorVsc.c: fix print formatting

There were a few places that used %lx when they should have used %x
and a few places that used %d when they should have used %ld
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 454f18a9
...@@ -271,7 +271,7 @@ StorVscInitialize( ...@@ -271,7 +271,7 @@ StorVscInitialize(
DPRINT_ENTER(STORVSC); DPRINT_ENTER(STORVSC);
DPRINT_DBG(STORVSC, "sizeof(STORVSC_REQUEST)=%d sizeof(STORVSC_REQUEST_EXTENSION)=%d sizeof(VSTOR_PACKET)=%d, sizeof(VMSCSI_REQUEST)=%d", DPRINT_DBG(STORVSC, "sizeof(STORVSC_REQUEST)=%ld sizeof(STORVSC_REQUEST_EXTENSION)=%ld sizeof(VSTOR_PACKET)=%ld, sizeof(VMSCSI_REQUEST)=%ld",
sizeof(STORVSC_REQUEST), sizeof(STORVSC_REQUEST_EXTENSION), sizeof(VSTOR_PACKET), sizeof(VMSCSI_REQUEST)); sizeof(STORVSC_REQUEST), sizeof(STORVSC_REQUEST_EXTENSION), sizeof(VSTOR_PACKET), sizeof(VMSCSI_REQUEST));
/* Make sure we are at least 2 pages since 1 page is used for control */ /* Make sure we are at least 2 pages since 1 page is used for control */
...@@ -357,7 +357,7 @@ StorVscOnDeviceAdd( ...@@ -357,7 +357,7 @@ StorVscOnDeviceAdd(
deviceInfo->PathId = storDevice->PathId; deviceInfo->PathId = storDevice->PathId;
deviceInfo->TargetId = storDevice->TargetId; deviceInfo->TargetId = storDevice->TargetId;
DPRINT_DBG(STORVSC, "assigned port %lu, path %u target %u\n", storDevice->PortNumber, storDevice->PathId, storDevice->TargetId); DPRINT_DBG(STORVSC, "assigned port %u, path %u target %u\n", storDevice->PortNumber, storDevice->PathId, storDevice->TargetId);
Cleanup: Cleanup:
DPRINT_EXIT(STORVSC); DPRINT_EXIT(STORVSC);
...@@ -413,7 +413,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device) ...@@ -413,7 +413,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device)
if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0) if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0)
{ {
DPRINT_ERR(STORVSC, "BEGIN_INITIALIZATION_OPERATION failed (op %d status 0x%lx)", vstorPacket->Operation, vstorPacket->Status); DPRINT_ERR(STORVSC, "BEGIN_INITIALIZATION_OPERATION failed (op %d status 0x%x)", vstorPacket->Operation, vstorPacket->Status);
goto Cleanup; goto Cleanup;
} }
...@@ -444,7 +444,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device) ...@@ -444,7 +444,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device)
/* TODO: Check returned version */ /* TODO: Check returned version */
if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0) if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0)
{ {
DPRINT_ERR(STORVSC, "QUERY_PROTOCOL_VERSION_OPERATION failed (op %d status 0x%lx)", vstorPacket->Operation, vstorPacket->Status); DPRINT_ERR(STORVSC, "QUERY_PROTOCOL_VERSION_OPERATION failed (op %d status 0x%x)", vstorPacket->Operation, vstorPacket->Status);
goto Cleanup; goto Cleanup;
} }
...@@ -474,7 +474,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device) ...@@ -474,7 +474,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device)
/* TODO: Check returned version */ /* TODO: Check returned version */
if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0) if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0)
{ {
DPRINT_ERR(STORVSC, "QUERY_PROPERTIES_OPERATION failed (op %d status 0x%lx)", vstorPacket->Operation, vstorPacket->Status); DPRINT_ERR(STORVSC, "QUERY_PROPERTIES_OPERATION failed (op %d status 0x%x)", vstorPacket->Operation, vstorPacket->Status);
goto Cleanup; goto Cleanup;
} }
...@@ -482,7 +482,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device) ...@@ -482,7 +482,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device)
storDevice->PathId = vstorPacket->StorageChannelProperties.PathId; storDevice->PathId = vstorPacket->StorageChannelProperties.PathId;
storDevice->TargetId = vstorPacket->StorageChannelProperties.TargetId; storDevice->TargetId = vstorPacket->StorageChannelProperties.TargetId;
DPRINT_DBG(STORVSC, "channel flag 0x%lx, max xfer len 0x%lx", vstorPacket->StorageChannelProperties.Flags, vstorPacket->StorageChannelProperties.MaxTransferBytes); DPRINT_DBG(STORVSC, "channel flag 0x%x, max xfer len 0x%x", vstorPacket->StorageChannelProperties.Flags, vstorPacket->StorageChannelProperties.MaxTransferBytes);
DPRINT_INFO(STORVSC, "END_INITIALIZATION_OPERATION..."); DPRINT_INFO(STORVSC, "END_INITIALIZATION_OPERATION...");
...@@ -507,7 +507,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device) ...@@ -507,7 +507,7 @@ static int StorVscChannelInit(DEVICE_OBJECT *Device)
if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0) if (vstorPacket->Operation != VStorOperationCompleteIo || vstorPacket->Status != 0)
{ {
DPRINT_ERR(STORVSC, "END_INITIALIZATION_OPERATION failed (op %d status 0x%lx)", vstorPacket->Operation, vstorPacket->Status); DPRINT_ERR(STORVSC, "END_INITIALIZATION_OPERATION failed (op %d status 0x%x)", vstorPacket->Operation, vstorPacket->Status);
goto Cleanup; goto Cleanup;
} }
...@@ -549,7 +549,7 @@ StorVscConnectToVsp( ...@@ -549,7 +549,7 @@ StorVscConnectToVsp(
Device Device
); );
DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %ld", props.PathId, props.TargetId, props.MaxTransferBytes); DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d", props.PathId, props.TargetId, props.MaxTransferBytes);
if (ret != 0) if (ret != 0)
{ {
...@@ -835,7 +835,7 @@ StorVscOnIOCompletion( ...@@ -835,7 +835,7 @@ StorVscOnIOCompletion(
return; return;
} }
DPRINT_DBG(STORVSC, "IO_COMPLETE_OPERATION - request extension %p completed bytes xfer %lu", DPRINT_DBG(STORVSC, "IO_COMPLETE_OPERATION - request extension %p completed bytes xfer %u",
RequestExt, VStorPacket->VmSrb.DataTransferLength); RequestExt, VStorPacket->VmSrb.DataTransferLength);
ASSERT(RequestExt != NULL); ASSERT(RequestExt != NULL);
......
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