Kernel - Removed unused ring buffer when disabled
authorJohn Hodge <[email protected]>
Thu, 9 Aug 2012 16:16:58 +0000 (00:16 +0800)
committerJohn Hodge <[email protected]>
Thu, 9 Aug 2012 16:16:58 +0000 (00:16 +0800)
KernelLand/Kernel/logging.c

index d067e49..9617b83 100644 (file)
@@ -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 ===
 /**

UCC git Repository :: git.ucc.asn.au