From: tzachid Date: Mon, 21 Nov 2005 12:32:28 +0000 (+0000) Subject: Improved logging of driver. (Rev 724) X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0e350a7260937a20632e5fb93731c7c8bf3ca2e0;p=~shefty%2Frdma-win.git Improved logging of driver. (Rev 724) git-svn-id: svn://openib.tc.cornell.edu/gen1@183 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/sdp/kernel/SdpArp.cpp b/trunk/ulp/sdp/kernel/SdpArp.cpp index e317aea2..8ad68265 100644 --- a/trunk/ulp/sdp/kernel/SdpArp.cpp +++ b/trunk/ulp/sdp/kernel/SdpArp.cpp @@ -10,16 +10,16 @@ SdpArp::Init(PDRIVER_OBJECT DriverObject) SDP_PRINT(SDP_TRACE, SDP_SOCKET,("Entering")); NTSTATUS rc = STATUS_SUCCESS; - UNICODE_STRING DevName; + UNICODE_STRING DevName1; IO_STATUS_BLOCK ioStatus; m_DeviceObject = NULL; OBJECT_ATTRIBUTES objectAttributes; - RtlInitUnicodeString( &DevName, IPOIB_DEV_NAME ); + RtlInitUnicodeString( &DevName1, IPOIB_DEV_NAME ); InitializeObjectAttributes( &objectAttributes, - &DevName, + &DevName1, OBJ_KERNEL_HANDLE, (HANDLE) NULL, (PSECURITY_DESCRIPTOR) NULL ); diff --git a/trunk/ulp/sdp/kernel/SdpDriver.cpp b/trunk/ulp/sdp/kernel/SdpDriver.cpp index 25b179ea..ae4ce089 100644 --- a/trunk/ulp/sdp/kernel/SdpDriver.cpp +++ b/trunk/ulp/sdp/kernel/SdpDriver.cpp @@ -40,7 +40,7 @@ extern "C" NTSTATUS DriverEntry ( SdpDriver *pSdpDriver; bool DeviceCreated = false; bool LinkCreated = false; - UNICODE_STRING DevName, LinkName; + UNICODE_STRING DevName1, LinkName; int i; SDP_PRINT(SDP_TRACE, SDP_DRIVER, ("called\n" )); @@ -56,14 +56,14 @@ extern "C" NTSTATUS DriverEntry ( // Create the device that will be used for comunication with the user mode // Now create the device - RtlInitUnicodeString( &DevName, SDP_DEVICE_NAME ); + RtlInitUnicodeString( &DevName1, SDP_DEVICE_NAME ); RtlInitUnicodeString( &LinkName, SDP_LINK_NAME ); // BUGBUG: Should we crearte a secure device object rc = IoCreateDevice( pDriverObject, sizeof(SdpDriver), - &DevName, + &DevName1, FILE_DEVICE_UNKNOWN, 0, FALSE, @@ -86,7 +86,7 @@ extern "C" NTSTATUS DriverEntry ( // Create a Win32-accessible device object rc = IoCreateSymbolicLink( &LinkName, - &DevName + &DevName1 ); if (!NT_SUCCESS(rc)) {