print the known cbfs types in cbfstool "usage"

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5487 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2010-04-24 21:24:06 +00:00
committed by Stefan Reinauer
parent 3173d8c94a
commit 0704058327
3 changed files with 26 additions and 10 deletions

View File

@@ -137,6 +137,17 @@ struct filetypes_t {
{CBFS_COMPONENT_NULL, "null"}
};
void print_supported_filetypes(void)
{
int i, number = ARRAY_SIZE(filetypes);
for (i=0; i<number; i++) {
printf(" %s%c", filetypes[i].name, (i==(number-1))?'\n':',');
if ((i%8) == 7)
printf("\n");
}
}
const char *strfiletype(uint32_t number)
{
int i;