diff --git a/src/config.h b/src/config.h index 620bad8..fab2d76 100644 --- a/src/config.h +++ b/src/config.h @@ -1,6 +1,7 @@ #ifndef _CONFIG_H #define _CONFIG_H +// #define DEBUG_FS // #define DEBUG_SD // #define DEBUG_IRQ // #define DEBUG_MSU1 diff --git a/src/filetypes.c b/src/filetypes.c index 996b4ac..d333369 100644 --- a/src/filetypes.c +++ b/src/filetypes.c @@ -190,7 +190,7 @@ uint32_t scan_dir(char* path, char mkdb, uint32_t this_dir_tgt) { file_close(); */ /* write element pointer to current dir structure */ - printf("d=%d Saving %lX to Address %lX [file %s]\n", depth, db_tgt, dir_tgt, path); + DBG_FS printf("d=%d Saving %lX to Address %lX [file %s]\n", depth, db_tgt, dir_tgt, path); if((db_tgt&0xffff) > ((0x10000-(sizeof(len) + pathlen + sizeof(buf)-1 + 1))&0xffff)) { printf("switch! old=%lx ", db_tgt); db_tgt &= 0xffff0000; diff --git a/src/filetypes.h b/src/filetypes.h index 434372c..d50ff42 100644 --- a/src/filetypes.h +++ b/src/filetypes.h @@ -27,6 +27,12 @@ #ifndef FILETYPES_H #define FILETYPES_H +#ifdef DEBUG_FS +#define DBG_FS +#else +#define DBG_FS while(0) +#endif + #include "ff.h" #define FS_MAX_DEPTH (10)