Revert "board_perf:add support for kv and vfs on ch32v307 board"
This reverts commit 4f5c747a63
.
This commit is contained in:
@@ -1312,44 +1312,44 @@ __DEBUG__ kv_err_t tos_kv_walkthru(void)
|
||||
uint32_t cur_blk;
|
||||
kv_blk_hdr_t blk_hdr;
|
||||
|
||||
printf("workspace: 0x%x [%d block]\r\n", KV_MGR_WORKSPACE, KV_BLK_ADDR2IDX(KV_MGR_WORKSPACE));
|
||||
printf("workspace: 0x%x [%d block]\n", KV_MGR_WORKSPACE, KV_BLK_ADDR2IDX(KV_MGR_WORKSPACE));
|
||||
|
||||
KV_BLK_FOR_EACH(cur_blk) {
|
||||
printf("[%d] block\r\n", i++);
|
||||
printf("addr: 0x%x\r\n", cur_blk);
|
||||
printf("[%d] block\n", i++);
|
||||
printf("addr: 0x%x\n", cur_blk);
|
||||
|
||||
if (kv_blk_hdr_read(cur_blk, &blk_hdr) != KV_ERR_NONE) {
|
||||
printf("block header read failed\r\n");
|
||||
printf("block header read failed\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!KV_BLK_IS_LEGAL(&blk_hdr)) {
|
||||
printf("block not formatted\r\n");
|
||||
printf("block not formatted\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (KV_BLK_IS_GC_SRC(&blk_hdr)) {
|
||||
printf("block is gc-src\r\n");
|
||||
printf("block is gc-src\n");
|
||||
}
|
||||
|
||||
if (KV_BLK_IS_GC_DST(&blk_hdr)) {
|
||||
printf("block is gc-dst\r\n");
|
||||
printf("block is gc-dst\n");
|
||||
}
|
||||
|
||||
if (KV_BLK_IS_GC_DONE(&blk_hdr)) {
|
||||
printf("block is gc-done\r\n");
|
||||
printf("block is gc-done\n");
|
||||
}
|
||||
|
||||
if (KV_BLK_IS_GC_DST_NOT_DONE(&blk_hdr)) {
|
||||
printf("block is gc-dst but not done\r\n");
|
||||
printf("block is gc-dst but not done\n");
|
||||
}
|
||||
|
||||
if (kv_block_walkthru(cur_blk) != KV_ERR_NONE) {
|
||||
printf("block diagnosis failed\r\n");
|
||||
printf("block diagnosis failed\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("\r\n\n");
|
||||
printf("\n\n");
|
||||
}
|
||||
|
||||
return KV_ERR_NONE;
|
||||
|
Reference in New Issue
Block a user