| 1654 | } |
| 1655 | |
| 1656 | static enum ifwi_ret ifwi_print(void) |
| 1657 | { |
| 1658 | verbose += 2; |
| 1659 | |
| 1660 | struct bpdt *b = buffer_get(&ifwi_image.bpdt); |
| 1661 | |
| 1662 | bpdt_print_header(&b->h, "BPDT"); |
| 1663 | bpdt_print_entries(&b->e[0], b->h.descriptor_count, "BPDT"); |
| 1664 | |
| 1665 | b = buffer_get(&ifwi_image.subpart_buf[S_BPDT_TYPE]); |
| 1666 | bpdt_print_header(&b->h, "S-BPDT"); |
| 1667 | bpdt_print_entries(&b->e[0], b->h.descriptor_count, "S-BPDT"); |
| 1668 | |
| 1669 | if (param.dir_ops == 0) { |
| 1670 | verbose -= 2; |
| 1671 | return NO_ACTION_REQUIRED; |
| 1672 | } |
| 1673 | |
| 1674 | int i; |
| 1675 | struct buffer subpart_dir_buf; |
| 1676 | for (i = 0; i < MAX_SUBPARTS ; i++) { |
| 1677 | if (!(subparts[i].attr & CONTAINS_DIR) || |
| 1678 | (buffer_size(&ifwi_image.subpart_buf[i]) == 0)) |
| 1679 | continue; |
| 1680 | |
| 1681 | parse_subpart_dir(&subpart_dir_buf, &ifwi_image.subpart_buf[i], |
| 1682 | subparts[i].name); |
| 1683 | buffer_delete(&subpart_dir_buf); |
| 1684 | } |
| 1685 | |
| 1686 | verbose -= 2; |
| 1687 | |
| 1688 | return NO_ACTION_REQUIRED; |
| 1689 | } |
| 1690 | |
| 1691 | static enum ifwi_ret ifwi_raw_replace(int type) |
| 1692 | { |
nothing calls this directly
no test coverage detected