From 731ea5d50d5aceccb04639adff28155d7b4e99cc Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Thu, 24 Nov 2016 10:16:47 +0000 Subject: [PATCH] Increase debug level of stat() and open() messages Useful for debugging at level 3 PUBLISHED_FROM=b6a4565df0de0dccf37c182c71d2f4c852f2291a --- mongoose.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index b4d13ca9..e39a4c77 100644 --- a/mongoose.c +++ b/mongoose.c @@ -12287,7 +12287,8 @@ int _open(const char *pathname, int flags, mode_t mode) { if (fd >= 0) fd += SPIFFS_FD_BASE; #endif } - DBG(("open(%s, 0x%x) = %d, fname = %s", pathname, flags, fd, fname)); + LOG(LL_DEBUG, + ("open(%s, 0x%x) = %d, fname = %s", pathname, flags, fd, fname)); return fd; } @@ -12313,7 +12314,7 @@ int _stat(const char *pathname, struct stat *st) { res = fs_spiffs_stat(fname, st); #endif } - DBG(("stat(%s) = %d; fname = %s", pathname, res, fname)); + LOG(LL_DEBUG, ("stat(%s) = %d; fname = %s", pathname, res, fname)); return res; }