Increase debug level of stat() and open() messages

Useful for debugging at level 3

PUBLISHED_FROM=b6a4565df0de0dccf37c182c71d2f4c852f2291a
This commit is contained in:
Deomid Ryabkov 2016-11-24 10:16:47 +00:00 committed by Cesanta Bot
parent 9e517fde00
commit 731ea5d50d

View File

@ -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;
}