summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/common.c')
-rw-r--r--util/cbfstool/common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index e0f4c312a3..30d52816b1 100644
--- a/util/cbfstool/common.c
+++ b/util/cbfstool/common.c
@@ -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;