Explorar el Código

Added extended debugging even if not a network devic, new compile parameter EXTENDED_DEBUG_LOGGING that do the same thing nearly as NETWORK_DEBUG_LOGGING

Per Mårtensson hace 1 mes
padre
commit
5bb38b72c7
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/BlueSCSI_log.cpp
  2. 1 1
      src/BlueSCSI_log.h

+ 1 - 1
src/BlueSCSI_log.cpp

@@ -252,7 +252,7 @@ const char *log_get_buffer(uint32_t *startpos, uint32_t *available)
 }
 
 
-#ifdef NETWORK_DEBUG_LOGGING
+#if defined(NETWORK_DEBUG_LOGGING) || defined(EXTENDED_DEBUG_LOGGING)   
 // TODO write directly global log buffer to save some memory
 static char shared_log_buf[1500 * 3];
 

+ 1 - 1
src/BlueSCSI_log.h

@@ -120,7 +120,7 @@ inline void dbgmsg(Params... params)
     }
 }
 
-#ifdef NETWORK_DEBUG_LOGGING
+#if defined(NETWORK_DEBUG_LOGGING) || defined(EXTENDED_DEBUG_LOGGING)   
 #ifdef __cplusplus
 extern "C" {
 #endif