Make sure toc printers and IDs are propperly assigned

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-02-04 15:12:06 +01:00
parent 8754729cb1
commit 618aaf4278
1 changed files with 3 additions and 3 deletions

View File

@ -87,9 +87,9 @@ static int print_initrd(image_entry_t *ent, const char *root)
}
static print_fun_t printers[] = {
print_pretty,
print_sqfs,
print_initrd,
[TOC_FORMAT_PRETTY] = print_pretty,
[TOC_FORMAT_SQFS] = print_sqfs,
[TOC_FORMAT_INITRD] = print_initrd,
};
int dump_toc(image_entry_t *list, const char *root, TOC_FORMAT format)