mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Increase debug level of stat() and open() messages
Useful for debugging at level 3 PUBLISHED_FROM=b6a4565df0de0dccf37c182c71d2f4c852f2291a
This commit is contained in:
1 parent
9e517fde00
commit
731ea5d50d
1 file changed
+3
-2
+3
-2
@@ -12287,7 +12287,8 @@ int _open(const char *pathname, int flags, mode_t mode) {
|
|||||||
if (fd >= 0) fd += SPIFFS_FD_BASE;
|
if (fd >= 0) fd += SPIFFS_FD_BASE;
|
||||||
#endif
|
#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;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12313,7 +12314,7 @@ int _stat(const char *pathname, struct stat *st) {
|
|||||||
res = fs_spiffs_stat(fname, st);
|
res = fs_spiffs_stat(fname, st);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
DBG(("stat(%s) = %d; fname = %s", pathname, res, fname));
|
LOG(LL_DEBUG, ("stat(%s) = %d; fname = %s", pathname, res, fname));
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user