View difference between Paste ID: xHLSSSy3 and a8ABeJqm
SHOW: | | - or go back to the newest paste.
1-
diff --git a/drivers/block/sunxi_nand/nfd/mbr.c b/drivers/block/sunxi_nand/nfd/m
1+
2
--- a/drivers/block/sunxi_nand/nfd/mbr.c
3
+++ b/drivers/block/sunxi_nand/nfd/mbr.c
4
@@ -132,7 +132,7 @@ int mbr2disks(struct nand_disk* disk_array)
5
        //查找出所有的LINUX盘符
6-
        //<E6><9F><A5><E6><89><BE><E5><87><BA><E6><89><80><E6><9C><89><E7><9A>
6+
        for(part_cnt = 0; part_cnt < mbr->PartCount && part_cnt < MAX_PART_COUNT; part_cnt++)
7-
        for(part_cnt = 0; part_cnt < mbr->PartCount && part_cnt < MAX_PART_COUNT
7+
8
-           if((mbr->array[part_cnt].user_type == 2) || (mbr->array[part_cnt].user_type == 0))
9-
-           if((mbr->array[part_cnt].user_type == 2) || (mbr->array[part_cnt].us
9+
+           if((mbr->array[part_cnt].user_type == 1) || (mbr->array[part_cnt].user_type == 0))
10-
+           if((mbr->array[part_cnt].user_type == 1) || (mbr->array[part_cnt].us
10+
11
                        PRINT("The %d disk name = %s, class name = %s, disk size = %d\n", part_index, mbr->array[part_cnt].name,
12-
                        PRINT("The %d disk name = %s, class name = %s, disk size
12+
                                                mbr->array[part_cnt].classname, mbr->array[part_cnt].lenlo);