util/cbi-util.c: Format with clang-format
BRANCH=none
TEST=none
@@ -64,24 +64,15 @@ static const struct option opts_create[] = {
{ NULL, 0, 0, 0 }
};
-static const struct option opts_show[] = {
- {"file", 1, 0, OPT_FILENAME},
+static const struct option opts_show[] = { { "file", 1, 0, OPT_FILENAME },
{ "all", 0, 0, OPT_SHOW_ALL },
- {NULL, 0, 0, 0}
-};
+ { NULL, 0, 0, 0 } };
static const char *field_name[] = {
/* Same order as enum cbi_data_tag */
- "BOARD_VERSION",
- "OEM_ID",
- "SKU_ID",
- "DRAM_PART_NUM",
- "OEM_NAME",
- "MODEL_ID",
- "FW_CONFIG",
- "PCB_SUPPLIER",
- "SSFC",
- "REWORK_ID",
+ "BOARD_VERSION", "OEM_ID", "SKU_ID", "DRAM_PART_NUM",
+ "OEM_NAME", "MODEL_ID", "FW_CONFIG", "PCB_SUPPLIER",
+ "SSFC", "REWORK_ID",
};
BUILD_ASSERT(ARRAY_SIZE(field_name) == CBI_TAG_COUNT);
@@ -148,7 +139,8 @@ static void print_help(void)
{
printf("\nUsage: %s <create|show> [ARGS]\n"
"\n"
- "Utility for CBI:Cros Board Info images.\n", cmd_name);
+ "Utility for CBI:Cros Board Info images.\n",
+ cmd_name);
print_help_create();
print_help_show();
}
@@ -489,8 +481,8 @@ static void print_integer(const uint8_t *buf, enum cbi_data_tag tag)
v = *(uint64_t *)d->value;
break;
default:
- printf(" %s: Integer of size %d not supported\n",
- name, d->size);
+ printf(" %s: Integer of size %d not supported\n", name,
+ d->size);
return;
}
printf(" %s: %llu (0x%llx, %u, %u)\n", name, (unsigned long long)v,
