Author: cgutman Date: Tue Oct 14 18:35:33 2008 New Revision: 36755
URL: http://svn.reactos.org/svn/reactos?rev=36755&view=rev Log: - Change the trace level on some debug prints so you get debug info when a protocol driver fails to be registered - Add a debug print
Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/protocol.c
Modified: branches/aicom-network-fixes/drivers/network/ndis/ndis/protocol.c URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/netw... ============================================================================== --- branches/aicom-network-fixes/drivers/network/ndis/ndis/protocol.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/ndis/ndis/protocol.c [iso-8859-1] Tue Oct 14 18:35:33 2008 @@ -614,7 +614,7 @@
if (CharacteristicsLength < MinSize) { - NDIS_DbgPrint(DEBUG_PROTOCOL, ("Bad protocol characteristics.\n")); + NDIS_DbgPrint(MIN_TRACE, ("Bad protocol characteristics.\n")); *Status = NDIS_STATUS_BAD_CHARACTERISTICS; return; } @@ -680,7 +680,7 @@
if(!NT_SUCCESS(NtStatus)) { - NDIS_DbgPrint(MID_TRACE, ("Unable to open protocol configuration\n")); + NDIS_DbgPrint(MIN_TRACE, ("Unable to open protocol configuration\n")); ExFreePool(Protocol); *Status = NDIS_STATUS_FAILURE; return; @@ -698,7 +698,7 @@ NtStatus = ZwQueryValueKey(DriverKeyHandle, &ValueName, KeyValuePartialInformation, NULL, 0, &ResultLength); if(NtStatus != STATUS_BUFFER_OVERFLOW && NtStatus != STATUS_BUFFER_TOO_SMALL && NtStatus != STATUS_SUCCESS) { - NDIS_DbgPrint(MID_TRACE, ("Unable to query the Bind value for size\n")); + NDIS_DbgPrint(MIN_TRACE, ("Unable to query the Bind value for size\n")); ZwClose(DriverKeyHandle); ExFreePool(Protocol); *Status = NDIS_STATUS_FAILURE; @@ -800,6 +800,7 @@ } else if(*Status != NDIS_STATUS_PENDING) { + NDIS_DbgPrint(MIN_TRACE, ("ProtocolBindAdapter failed with status 0x%x\n", *Status)); ExFreePool(Protocol); ExFreePool(KeyInformation); *NdisProtocolHandle = NULL;