[Yaffs] [PATCH] Fix order of block state names

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Cory Wiltshire
Date:  
To: yaffs
New-Topics: Re: [Yaffs] [PATCH] Fix order of block state names
Subject: [Yaffs] [PATCH] Fix order of block state names
YAFFS_BLOCK_STATE_SCANNING is defined before YAFFS_BLOCK_STATE_NEEDS_SCAN
in the enum definition for yaffs_block_state in yaffs_guts.h
This fixes the block_state_name array in yaffs_verify.c to match.
---
yaffs_verify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaffs_verify.c b/yaffs_verify.c
index 9141eb5..8bfed19 100644
--- a/yaffs_verify.c
+++ b/yaffs_verify.c
@@ -37,8 +37,8 @@ static int yaffs_skip_nand_verification(struct yaffs_dev *dev)

 static const char * const block_state_name[] = {
        "Unknown",
-       "Needs scan",
        "Scanning",
+       "Needs scan",
        "Empty",
        "Allocating",
        "Full",
-- 
2.17.1