From 34f3db310e69d09f49b77cf5f7522795dbbdee89 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 20 Nov 2011 22:31:26 +0000 Subject: [PATCH] [NDIS] - Remove unicode debug stuff out of the spinlock - Add a comment svn path=/trunk/; revision=54467 --- reactos/drivers/network/ndis/ndis/miniport.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/network/ndis/ndis/miniport.c b/reactos/drivers/network/ndis/ndis/miniport.c index 4b391920746..4b487f5c0a3 100644 --- a/reactos/drivers/network/ndis/ndis/miniport.c +++ b/reactos/drivers/network/ndis/ndis/miniport.c @@ -610,6 +610,8 @@ MiniLocateDevice( return NULL; } + NDIS_DbgPrint(DEBUG_MINIPORT, ("AdapterName = %wZ\n", AdapterName)); + KeAcquireSpinLock(&AdapterListLock, &OldIrql); { CurrentEntry = AdapterListHead.Flink; @@ -621,9 +623,9 @@ MiniLocateDevice( ASSERT(Adapter); NDIS_DbgPrint(DEBUG_MINIPORT, ("Examining adapter 0x%lx\n", Adapter)); - NDIS_DbgPrint(DEBUG_MINIPORT, ("AdapterName = %wZ\n", AdapterName)); - NDIS_DbgPrint(DEBUG_MINIPORT, ("DeviceName = %wZ\n", &Adapter->NdisMiniportBlock.MiniportName)); + /* We're technically not allowed to call this above PASSIVE_LEVEL, but it doesn't break + * right now and I'd rather use a working API than reimplement it here */ if (RtlCompareUnicodeString(AdapterName, &Adapter->NdisMiniportBlock.MiniportName, TRUE) == 0) { break;