Improved logging of driver. (Rev 724)
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 12:32:28 +0000 (12:32 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 12:32:28 +0000 (12:32 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@183 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/sdp/kernel/SdpArp.cpp
ulp/sdp/kernel/SdpDriver.cpp

index e317aea..8ad6826 100644 (file)
@@ -10,16 +10,16 @@ SdpArp::Init(PDRIVER_OBJECT  DriverObject)
     SDP_PRINT(SDP_TRACE, SDP_SOCKET,("Entering"));\r
 \r
     NTSTATUS rc = STATUS_SUCCESS;\r
-    UNICODE_STRING  DevName;\r
+    UNICODE_STRING  DevName1;\r
     IO_STATUS_BLOCK ioStatus;\r
     m_DeviceObject = NULL;\r
 \r
     OBJECT_ATTRIBUTES objectAttributes;\r
 \r
-    RtlInitUnicodeString( &DevName, IPOIB_DEV_NAME );\r
+    RtlInitUnicodeString( &DevName1, IPOIB_DEV_NAME );\r
 \r
     InitializeObjectAttributes( &objectAttributes,\r
-                                &DevName,\r
+                                &DevName1,\r
                                 OBJ_KERNEL_HANDLE,\r
                                 (HANDLE) NULL,\r
                                 (PSECURITY_DESCRIPTOR) NULL );\r
index 25b179e..ae4ce08 100644 (file)
@@ -40,7 +40,7 @@ extern "C" NTSTATUS DriverEntry (
     SdpDriver *pSdpDriver;\r
     bool DeviceCreated = false;\r
     bool LinkCreated = false;\r
-    UNICODE_STRING  DevName, LinkName;\r
+    UNICODE_STRING  DevName1, LinkName;\r
     int i;\r
 \r
     SDP_PRINT(SDP_TRACE, SDP_DRIVER, ("called\n" ));\r
@@ -56,14 +56,14 @@ extern "C" NTSTATUS DriverEntry (
     // Create the device that will be used for comunication with the user mode\r
     // Now create the device\r
 \r
-    RtlInitUnicodeString( &DevName, SDP_DEVICE_NAME );\r
+    RtlInitUnicodeString( &DevName1, SDP_DEVICE_NAME );\r
     RtlInitUnicodeString( &LinkName, SDP_LINK_NAME );\r
 \r
     \r
     // BUGBUG: Should we crearte a secure device object \r
     rc = IoCreateDevice( pDriverObject,\r
                             sizeof(SdpDriver),\r
-                            &DevName,\r
+                            &DevName1,\r
                             FILE_DEVICE_UNKNOWN,\r
                             0, \r
                             FALSE,\r
@@ -86,7 +86,7 @@ extern "C" NTSTATUS DriverEntry (
     // Create a Win32-accessible device object\r
     rc = IoCreateSymbolicLink(\r
             &LinkName,\r
-            &DevName            \r
+            &DevName1            \r
             );\r
 \r
     if (!NT_SUCCESS(rc)) {\r