mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Small DBG related patches.
svn path=/trunk/; revision=11626
This commit is contained in:
parent
dea7f87980
commit
1eb22067d1
3 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -61,7 +61,9 @@ extern DWORD DebugTraceLevel;
|
|||
|
||||
#define ASSERT_IRQL(x)
|
||||
#define ASSERTKM(x)
|
||||
#ifndef ASSERT
|
||||
#define ASSERT(x)
|
||||
#endif
|
||||
|
||||
#endif /* DBG */
|
||||
|
||||
|
|
Loading…
Reference in a new issue