From: John Hodge Date: Thu, 9 Aug 2012 16:16:58 +0000 (+0800) Subject: Kernel - Removed unused ring buffer when disabled X-Git-Tag: rel0.15~706^2~47 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f5339852eb9737ab9681d24587bc66b66ca568e7;p=tpg%2Facess2.git Kernel - Removed unused ring buffer when disabled --- diff --git a/KernelLand/Kernel/logging.c b/KernelLand/Kernel/logging.c index d067e499..9617b834 100644 --- a/KernelLand/Kernel/logging.c +++ b/KernelLand/Kernel/logging.c @@ -69,14 +69,16 @@ EXPORT(Log_Debug); // === GLOBALS === tShortSpinlock glLogOutput; -#if USE_RING_BUFFER +#if CACHE_MESSAGES +# if USE_RING_BUFFER Uint8 gaLog_RingBufferData[sizeof(tRingBuffer)+RING_BUFFER_SIZE]; tRingBuffer *gpLog_RingBuffer = (void*)gaLog_RingBufferData; -#else +# else tMutex glLog; tLogList gLog; tLogList gLog_Levels[NUM_LOG_LEVELS]; -#endif +# endif // USE_RING_BUFFER +#endif // CACHE_MESSAGES // === CODE === /**