Updated DBG macros as suggested by susisstrolch

pull/72/head
Benjamin Runnels 9 years ago
parent 25ef0e1578
commit b8567ad2ef
  1. 2
      cmd/cmd.c
  2. 2
      cmd/handlers.c
  3. 4
      esp-link/cgioptiboot.c
  4. 2
      esp-link/cgiwifi.c
  5. 2
      esp-link/mdns.c
  6. 2
      httpd/httpd.c
  7. 1
      include/user_config.h
  8. 2
      mqtt/mqtt_cmd.c
  9. 2
      serial/slip.c

@ -8,7 +8,7 @@
#include "uart.h" #include "uart.h"
#ifdef CMD_DBG #ifdef CMD_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -13,7 +13,7 @@
#endif #endif
#ifdef CMD_DBG #ifdef CMD_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -16,10 +16,8 @@
#define PGM_TIMEOUT 20000 // timeout when sync is achieved, in milliseconds #define PGM_TIMEOUT 20000 // timeout when sync is achieved, in milliseconds
#define PGM_INTERVAL 200 // send sync at this interval in ms when in programming mode #define PGM_INTERVAL 200 // send sync at this interval in ms when in programming mode
#define OPTIBOOT_DBG
#undef DBG
#ifdef OPTIBOOT_DBG #ifdef OPTIBOOT_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -23,7 +23,7 @@ Cgi/template routines for the /wifi url.
#include "mdns.h" #include "mdns.h"
#ifdef CGIWIFI_DBG #ifdef CGIWIFI_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -13,7 +13,7 @@
#include "mdns.h" #include "mdns.h"
#ifdef MDNS_DBG #ifdef MDNS_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -18,7 +18,7 @@ Esp8266 http server - core routines
#include "httpd.h" #include "httpd.h"
#ifdef HTTPD_DBG #ifdef HTTPD_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -30,6 +30,7 @@
#undef SLIP_DBG #undef SLIP_DBG
#define UART_DBG #define UART_DBG
#define MDNS_DBG #define MDNS_DBG
#define OPTIBOOT_DBG
// If defined, the default hostname for DHCP will include the chip ID to make it unique // If defined, the default hostname for DHCP will include the chip ID to make it unique
#undef CHIP_IN_HOSTNAME #undef CHIP_IN_HOSTNAME

@ -8,7 +8,7 @@
#include "mqtt_cmd.h" #include "mqtt_cmd.h"
#ifdef MQTTCMD_DBG #ifdef MQTTCMD_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

@ -8,7 +8,7 @@
#include "cmd.h" #include "cmd.h"
#ifdef SLIP_DBG #ifdef SLIP_DBG
#define DBG(format, ...) os_printf(format, ## __VA_ARGS__) #define DBG(format, ...) do { os_printf(format, ## __VA_ARGS__) } while(0)
#else #else
#define DBG(format, ...) do { } while(0) #define DBG(format, ...) do { } while(0)
#endif #endif

Loading…
Cancel
Save