From 5bffc7fd1aaceee14922fd93a18c7479bfe50e3c Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 10 Aug 2013 20:08:07 +0800 Subject: [PATCH] Modules/IPStack - Added log when adapter is registered --- KernelLand/Modules/IPStack/adapters.c | 8 +++++++- KernelLand/Modules/IPStack/include/adapters_int.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 7bf10d56..e121eca4 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -83,7 +83,13 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi gpIP_AdapterList_Last->Next = ret; gpIP_AdapterList_Last = ret; Mutex_Release( &glIP_Adapters ); - + + Log_Log("IPStack", "Adapter %i: %s %02x:%02x:%02x:%02x:%02x:%02x", + ret->Index, Type->Name, + ret->HWAddr[0], ret->HWAddr[1], ret->HWAddr[2], + ret->HWAddr[3], ret->HWAddr[4], ret->HWAddr[5] + ); + // Watch the adapter for incoming packets void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret); if(!worker) { diff --git a/KernelLand/Modules/IPStack/include/adapters_int.h b/KernelLand/Modules/IPStack/include/adapters_int.h index c474818a..f4f3c438 100644 --- a/KernelLand/Modules/IPStack/include/adapters_int.h +++ b/KernelLand/Modules/IPStack/include/adapters_int.h @@ -23,7 +23,7 @@ struct sAdapter tVFS_Node Node; - char HWAddr[]; + Uint8 HWAddr[]; }; extern void Adapter_SendPacket(tAdapter *Handle, tIPStackBuffer *Buffer); -- 2.20.1