From e0b8ebba7d716201c94d53df3b452946962714cb Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 11 Aug 2013 11:11:25 +0800 Subject: [PATCH] Modules/E1000 - Disabled debug --- KernelLand/Modules/Network/E1000/e1000.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KernelLand/Modules/Network/E1000/e1000.c b/KernelLand/Modules/Network/E1000/e1000.c index 21cc9ed7..404540aa 100644 --- a/KernelLand/Modules/Network/E1000/e1000.c +++ b/KernelLand/Modules/Network/E1000/e1000.c @@ -5,7 +5,7 @@ * e1000.c * - Intel 8254x Network Card Driver (core) */ -#define DEBUG 1 +#define DEBUG 0 #define VERSION VER2(0,1) #include #include "e1000.h" @@ -234,6 +234,7 @@ int E1000_SendPacket(void *Ptr, tIPStackBuffer *Buffer) Card->TXSrcBuffers[last_txd] = Buffer; __sync_synchronize(); + #if DEBUG { volatile tTXDesc *txdp = Card->TXDescs + last_txd; LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD); @@ -242,6 +243,7 @@ int E1000_SendPacket(void *Ptr, tIPStackBuffer *Buffer) LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD); MM_FreeTemp( (void*)txdp_base); } + #endif // Trigger TX IPStack_Buffer_LockBuffer(Buffer); LOG("Triggering TX - Buffers[%i]=%p", last_txd, Buffer); -- 2.20.1