Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2019-05-31 12:40:19 +0300
committerChristopher Haster <chaster@utexas.edu>2019-07-16 23:14:32 +0300
commit6a1ee914904707cb65af5d9a9412cf6139c08b78 (patch)
tree06dbe06a2ec0290af49efe294bfb75247a5451f4 /Makefile
parentabd90cb84c818a663b584575b019258d01d0065e (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--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 185d8e5..364f299 100644
--- a/Makefile
+++ b/Makefile
@@ -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