diff options
author | Christopher Haster <chaster@utexas.edu> | 2019-05-31 12:40:19 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2019-07-16 23:14:32 +0300 |
commit | 6a1ee914904707cb65af5d9a9412cf6139c08b78 (patch) | |
tree | 06dbe06a2ec0290af49efe294bfb75247a5451f4 /Makefile | |
parent | abd90cb84c818a663b584575b019258d01d0065e (diff) |
Added trace statements through LFS_YES_TRACE
To use, compile and run with LFS_YES_TRACE defined:
make CFLAGS+=-DLFS_YES_TRACE=1 test_format
The name LFS_YES_TRACE was chosen to match the LFS_NO_DEBUG and
LFS_NO_WARN defines for the similar levels of output. The YES is
necessary to avoid a conflict with the actual LFS_TRACE macro that
gets emitting. LFS_TRACE can also be defined directly to provide
a custom trace formatter.
Hopefully having trace statements at the littlefs C API helps
debugging and reproducing issues.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,9 @@ endif ifdef WORD override CFLAGS += -m$(WORD) endif +ifdef TRACE +override CFLAGS += -DLFS_YES_TRACE +endif override CFLAGS += -I. override CFLAGS += -std=c99 -Wall -pedantic override CFLAGS += -Wextra -Wshadow -Wjump-misses-init |