mirror of
https://github.com/pellepl/spiffs.git
synced 2026-10-26 17:23:53 +00:00
tidied up debug stuff
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1283,10 +1283,6 @@ s32_t spiffs_object_find_object_index_header_by_name(
|
||||
return res;
|
||||
}
|
||||
|
||||
void stop() {
|
||||
printf("break");
|
||||
}
|
||||
|
||||
// Truncates object to new size. If new size is null, object may be removed totally
|
||||
s32_t spiffs_object_truncate(
|
||||
spiffs_fd *fd,
|
||||
|
||||
@@ -264,14 +264,13 @@
|
||||
return -1; \
|
||||
}
|
||||
|
||||
// todo
|
||||
#define SPIFFS_VALIDATE_OBJIX(ph, objid, spix) \
|
||||
if (((ph).flags & SPIFFS_PH_FLAG_USED) != 0) return SPIFFS_ERR_IS_FREE; \
|
||||
if (((ph).flags & SPIFFS_PH_FLAG_DELET) == 0) return SPIFFS_ERR_DELETED; \
|
||||
if (((ph).flags & SPIFFS_PH_FLAG_FINAL) != 0) return SPIFFS_ERR_NOT_FINALIZED; \
|
||||
if (((ph).flags & SPIFFS_PH_FLAG_INDEX) != 0) return SPIFFS_ERR_NOT_INDEX; \
|
||||
if (((objid) & SPIFFS_OBJ_ID_IX_FLAG) == 0) return SPIFFS_ERR_NOT_INDEX; \
|
||||
if ((ph).span_ix != (spix)) {stop(); return SPIFFS_ERR_INDEX_SPAN_MISMATCH;};
|
||||
if ((ph).span_ix != (spix)) return SPIFFS_ERR_INDEX_SPAN_MISMATCH;
|
||||
//if ((spix) == 0 && ((ph).flags & SPIFFS_PH_FLAG_IXDELE) == 0) return SPIFFS_ERR_DELETED;
|
||||
|
||||
#define SPIFFS_VALIDATE_DATA(ph, objid, spix) \
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
#define LOG_BLOCK 1*65536
|
||||
#define LOG_PAGE 1*PAGE_SIZE
|
||||
|
||||
static unsigned char area[2*1024*1024];
|
||||
static unsigned char area[8*1024*1024];
|
||||
|
||||
static int erases[sizeof(area)/SECTOR_SIZE];
|
||||
static char _path[256];
|
||||
|
||||
Reference in New Issue
Block a user