From cb715861380e24aecca2b9911fdaf583f2e42afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 24 Sep 2017 20:35:55 +0200 Subject: [PATCH] remove spammy debug --- esphttpdconfig.mk | 6 +++--- user/screen.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/esphttpdconfig.mk b/esphttpdconfig.mk index 6cf5552..d8b6237 100644 --- a/esphttpdconfig.mk +++ b/esphttpdconfig.mk @@ -44,10 +44,10 @@ GLOBAL_CFLAGS = \ -DDEBUG_HTTP=0 \ -DDEBUG_ESPFS=0 \ -DDEBUG_PERSIST=0 \ - -DDEBUG_UTFCACHE=1 \ + -DDEBUG_UTFCACHE=0 \ -DDEBUG_CGI=0 \ -DDEBUG_WIFI=0 \ - -DDEBUG_WS=1 \ + -DDEBUG_WS=0 \ -DDEBUG_ANSI=1 \ -DDEBUG_ANSI_NOIMPL=1 \ -DDEBUG_INPUT=0 \ @@ -56,6 +56,6 @@ GLOBAL_CFLAGS = \ -DHTTPD_MAX_BACKLOG_SIZE=8192 \ -DHTTPD_MAX_HEAD_LEN=1024 \ -DHTTPD_MAX_POST_LEN=512 \ - -DDEBUG_LOGBUF_SIZE=2048 \ + -DDEBUG_LOGBUF_SIZE=1024 \ -mforce-l32 \ -DUSE_OPTIMIZE_PRINTF=1 diff --git a/user/screen.c b/user/screen.c index 5adca49..78c4712 100644 --- a/user/screen.c +++ b/user/screen.c @@ -609,7 +609,7 @@ clear_range_noutf(unsigned int from, unsigned int to) static inline void ICACHE_FLASH_ATTR utf_free_cell(int row, int col) { - dbg("free cell (row %d) %d", row, col); + //dbg("free cell (row %d) %d", row, col); UnicodeCacheRef symbol = screen[row * W + col].symbol; if (IS_UNICODE_CACHE_REF(symbol)) unicode_cache_remove(symbol); @@ -625,7 +625,7 @@ utf_free_cell(int row, int col) static inline void ICACHE_FLASH_ATTR utf_backup_cell(int row, int col) { - dbg("backup cell (row %d) %d", row, col); + //dbg("backup cell (row %d) %d", row, col); UnicodeCacheRef symbol = screen[row * W + col].symbol; if (IS_UNICODE_CACHE_REF(symbol)) unicode_cache_inc(symbol); @@ -640,7 +640,7 @@ utf_backup_cell(int row, int col) static inline void ICACHE_FLASH_ATTR copy_cell(int row, int dest_col, int src_col) { - dbg("copy cell (row %d) %d -> %d", row, src_col, dest_col); + //dbg("copy cell (row %d) %d -> %d", row, src_col, dest_col); memcpy(screen+row*W+dest_col, screen+row*W+src_col, sizeof(Cell)); } @@ -652,7 +652,7 @@ copy_cell(int row, int dest_col, int src_col) static inline void ICACHE_FLASH_ATTR utf_free_row(int row) { - dbg("free row %d", row); + //dbg("free row %d", row); for (int col = 0; col < W; col++) { utf_free_cell(row, col); } @@ -666,7 +666,7 @@ utf_free_row(int row) static inline void ICACHE_FLASH_ATTR utf_backup_row(int row) { - dbg("backup row %d", row); + //dbg("backup row %d", row); for (int col = 0; col < W; col++) { utf_backup_cell(row, col); } @@ -681,7 +681,7 @@ utf_backup_row(int row) static inline void ICACHE_FLASH_ATTR copy_row(int dest, int src) { - dbg("copy row %d -> %d", src, dest); + //dbg("copy row %d -> %d", src, dest); memcpy(screen + dest * W, screen + src * W, sizeof(Cell) * W); }