From f5339852eb9737ab9681d24587bc66b66ca568e7 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 10 Aug 2012 00:16:58 +0800 Subject: [PATCH] Kernel - Removed unused ring buffer when disabled --- KernelLand/Kernel/logging.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 === /** -- 2.20.1