projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23a47e1
)
Index the block state string list because the order was wrong.
author
Charles Manning
<cdhmanning@gmail.com>
Tue, 25 May 2021 22:45:13 +0000
(10:45 +1200)
committer
Charles Manning
<cdhmanning@gmail.com>
Tue, 25 May 2021 22:45:13 +0000
(10:45 +1200)
Thanks to Cory Wiltshire for pointing out the problem and proposing
a fix.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_verify.c
patch
|
blob
|
history
diff --git
a/yaffs_verify.c
b/yaffs_verify.c
index ba9b9f478f50291e189ed190e90b45664837a681..e634b50d1944f1ac13eef1f0fc9c42aec945a088 100644
(file)
--- a/
yaffs_verify.c
+++ b/
yaffs_verify.c
@@
-36,16
+36,16
@@
static int yaffs_skip_nand_verification(struct yaffs_dev *dev)
}
static const char * const block_state_name[] = {
}
static const char * const block_state_name[] = {
- "Unknown",
- "Needs scan",
- "Scanning",
- "Empty",
- "Allocating",
- "Full",
- "Dirty",
- "Checkpoint",
- "Collecting",
- "Dead"
+
[YAFFS_BLOCK_STATE_UNKNOWN] =
"Unknown",
+
[YAFFS_BLOCK_STATE_NEEDS_SCAN] =
"Needs scan",
+
[YAFFS_BLOCK_STATE_SCANNING] =
"Scanning",
+
[YAFFS_BLOCK_STATE_EMPTY] =
"Empty",
+
[YAFFS_BLOCK_STATE_ALLOCATING] =
"Allocating",
+
[YAFFS_BLOCK_STATE_FULL] =
"Full",
+
[YAFFS_BLOCK_STATE_DIRTY] =
"Dirty",
+
[YAFFS_BLOCK_STATE_CHECKPOINT] =
"Checkpoint",
+
[YAFFS_BLOCK_STATE_COLLECTING] =
"Collecting",
+
[YAFFS_BLOCK_STATE_DEAD] =
"Dead"
};
void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, int n)
};
void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, int n)