Small DBG related patches.

svn path=/trunk/; revision=11626
This commit is contained in:
Art Yerkes 2004-11-12 09:27:02 +00:00
parent dea7f87980
commit 1eb22067d1
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/* $Id: lock.c,v 1.4 2004/11/12 07:34:56 arty Exp $
/* $Id: lock.c,v 1.5 2004/11/12 09:27:02 arty Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: drivers/net/afd/afd/lock.c
@ -148,7 +148,9 @@ UINT SocketAcquireStateLock( PAFD_FCB FCB ) {
}
VOID SocketStateUnlock( PAFD_FCB FCB ) {
#ifdef DBG
PVOID CurrentThread = KeGetCurrentThread();
#endif
ASSERT(FCB->LockCount > 0);
ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);

View file

@ -1,4 +1,4 @@
/* $Id: main.c,v 1.8 2004/11/12 07:34:56 arty Exp $
/* $Id: main.c,v 1.9 2004/11/12 09:27:02 arty Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: drivers/net/afd/afd/main.c
@ -228,7 +228,9 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
NTSTATUS Status = STATUS_SUCCESS;
#ifdef DBG
PFILE_OBJECT FileObject = IrpSp->FileObject;
#endif
AFD_DbgPrint(MID_TRACE,("AfdDispatch: %d\n", IrpSp->MajorFunction));
if( IrpSp->MajorFunction != IRP_MJ_CREATE) {

View file

@ -61,7 +61,9 @@ extern DWORD DebugTraceLevel;
#define ASSERT_IRQL(x)
#define ASSERTKM(x)
#ifndef ASSERT
#define ASSERT(x)
#endif
#endif /* DBG */