cmd: part: use MAX_SEARCH_PARTITIONS for part search

Use Macro instead of hard code.

Change-Id: I8a41a762bb16ca77816871b357ededdde0b1c875
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-09-07 17:34:06 +08:00
parent 8fc4f04087
commit d61082e9df
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static int do_part_list(int argc, char * const argv[])
char str[512] = { '\0', };
disk_partition_t info;
for (p = 1; p < 128; p++) {
for (p = 1; p < MAX_SEARCH_PARTITIONS; p++) {
char t[5];
int r = part_get_info(desc, p, &info);