From: John Hodge Date: Sun, 18 May 2014 05:58:06 +0000 (+0800) Subject: Modules/E1000 - (minor) Logging when init fails X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=829798445bab026f2cdc38c3916cd7cb5f0c19e8;p=tpg%2Facess2.git Modules/E1000 - (minor) Logging when init fails --- diff --git a/KernelLand/Modules/Network/E1000/e1000.c b/KernelLand/Modules/Network/E1000/e1000.c index 0ad49b01..600f3348 100644 --- a/KernelLand/Modules/Network/E1000/e1000.c +++ b/KernelLand/Modules/Network/E1000/e1000.c @@ -64,6 +64,7 @@ int E1000_Install(char **Arguments) // Allocate card array gaE1000_Cards = calloc(sizeof(tCard), card_count); if( !gaE1000_Cards ) { + Log_Warning("E1000", "Allocation of %i card structures failed", card_count); return MODULE_ERR_MALLOC; } @@ -88,6 +89,7 @@ int E1000_Install(char **Arguments) Log_Debug("E1000", "Card %i: %P IRQ %i", card_idx, card->MMIOBasePhys, card->IRQ); if( E1000_int_InitialiseCard(card) ) { + Log_Warning("E1000", "Initialisation of card #%i failed", card_idx); return MODULE_ERR_MALLOC; }