1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

emulation on host: FS: minor reset fix (#7417)

This commit is contained in:
david gauchard 2020-06-30 22:44:50 +02:00 committed by GitHub
parent b706fd4d59
commit 799c0f6774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ void LittleFSMock::load ()
if (flen != (off_t)m_fs.size()) if (flen != (off_t)m_fs.size())
{ {
fprintf(stderr, "LittleFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size()); fprintf(stderr, "LittleFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
if (!m_overwrite) if (!m_overwrite && flen > 0)
{ {
fprintf(stderr, "LittleFS: aborting at user request\n"); fprintf(stderr, "LittleFS: aborting at user request\n");
exit(1); exit(1);

View File

@ -94,7 +94,7 @@ void SpiffsMock::load ()
if (flen != (off_t)m_fs.size()) if (flen != (off_t)m_fs.size())
{ {
fprintf(stderr, "SPIFFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size()); fprintf(stderr, "SPIFFS: size of '%s': %d does not match requested size %zd\n", m_storage.c_str(), (int)flen, m_fs.size());
if (!m_overwrite) if (!m_overwrite && flen > 0)
{ {
fprintf(stderr, "SPIFFS: aborting at user request\n"); fprintf(stderr, "SPIFFS: aborting at user request\n");
exit(1); exit(1);