diff options
Diffstat (limited to 'utils/sbinfo/sbinfo.c')
-rw-r--r-- | utils/sbinfo/sbinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/sbinfo/sbinfo.c b/utils/sbinfo/sbinfo.c index a79cf75e0f..f09bb79fe9 100644 --- a/utils/sbinfo/sbinfo.c +++ b/utils/sbinfo/sbinfo.c | |||
@@ -325,7 +325,8 @@ static void extract(unsigned long filesize) | |||
325 | bugp("File size mismatch"); | 325 | bugp("File size mismatch"); |
326 | if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t)) | 326 | if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t)) |
327 | bugp("Bad header size"); | 327 | bugp("Bad header size"); |
328 | if(sb_header->major_ver != 1 || sb_header->minor_ver != 1) | 328 | if(sb_header->major_ver != IMAGE_MAJOR_VERSION || |
329 | sb_header->minor_ver != IMAGE_MINOR_VERSION) | ||
329 | bugp("Bad file format version"); | 330 | bugp("Bad file format version"); |
330 | if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t)) | 331 | if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t)) |
331 | bugp("Bad section header size"); | 332 | bugp("Bad section header size"); |
@@ -489,8 +490,8 @@ static void extract(unsigned long filesize) | |||
489 | name[4] = 0; | 490 | name[4] = 0; |
490 | int pos = sec_hdr->offset * BLOCK_SIZE; | 491 | int pos = sec_hdr->offset * BLOCK_SIZE; |
491 | int size = sec_hdr->size * BLOCK_SIZE; | 492 | int size = sec_hdr->size * BLOCK_SIZE; |
492 | int data_sec = !(sec_hdr->flags & ROM_SECTION_BOOTABLE); | 493 | int data_sec = !(sec_hdr->flags & SECTION_BOOTABLE); |
493 | int encrypted = !(sec_hdr->flags & ROM_SECTION_CLEARTEXT); | 494 | int encrypted = !(sec_hdr->flags & SECTION_CLEARTEXT); |
494 | 495 | ||
495 | color(GREEN); | 496 | color(GREEN); |
496 | printf(" Chunk "); | 497 | printf(" Chunk "); |