mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: drivers/net/afd/afd/lock.c
|
* FILE: drivers/net/afd/afd/lock.c
|
||||||
|
@ -148,7 +148,9 @@ UINT SocketAcquireStateLock( PAFD_FCB FCB ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID SocketStateUnlock( PAFD_FCB FCB ) {
|
VOID SocketStateUnlock( PAFD_FCB FCB ) {
|
||||||
|
#ifdef DBG
|
||||||
PVOID CurrentThread = KeGetCurrentThread();
|
PVOID CurrentThread = KeGetCurrentThread();
|
||||||
|
#endif
|
||||||
ASSERT(FCB->LockCount > 0);
|
ASSERT(FCB->LockCount > 0);
|
||||||
ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);
|
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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: drivers/net/afd/afd/main.c
|
* FILE: drivers/net/afd/afd/main.c
|
||||||
|
@ -228,7 +228,9 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
#ifdef DBG
|
||||||
PFILE_OBJECT FileObject = IrpSp->FileObject;
|
PFILE_OBJECT FileObject = IrpSp->FileObject;
|
||||||
|
#endif
|
||||||
|
|
||||||
AFD_DbgPrint(MID_TRACE,("AfdDispatch: %d\n", IrpSp->MajorFunction));
|
AFD_DbgPrint(MID_TRACE,("AfdDispatch: %d\n", IrpSp->MajorFunction));
|
||||||
if( IrpSp->MajorFunction != IRP_MJ_CREATE) {
|
if( IrpSp->MajorFunction != IRP_MJ_CREATE) {
|
||||||
|
|
|
@ -61,7 +61,9 @@ extern DWORD DebugTraceLevel;
|
||||||
|
|
||||||
#define ASSERT_IRQL(x)
|
#define ASSERT_IRQL(x)
|
||||||
#define ASSERTKM(x)
|
#define ASSERTKM(x)
|
||||||
|
#ifndef ASSERT
|
||||||
#define ASSERT(x)
|
#define ASSERT(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* DBG */
|
#endif /* DBG */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue