util/gen_emmc_transfer_data.c: Format with clang-format
BRANCH=none
TEST=none
@@ -46,8 +46,7 @@ void header_format(FILE *fin, FILE *fout)
"#define __CROS_EC_BOOTBLOCK_DATA_H\n"
"\n"
"#include <stdint.h>\n"
- "\n"
- );
+ "\n");
fprintf(fout,
"static const uint8_t %s[] __attribute__((aligned(4))) =\n"
@@ -69,13 +68,14 @@ void header_format(FILE *fin, FILE *fout)
fprintf(fout, "\t/* Block %d (%ld) */\n", blk, cnt);
fprintf(fout, "\t0xff, 0xfe, /* idle, start bit. */");
for (j = 0; j < sizeof(data); j++) {
- fprintf(fout, "%s0x%02x,",
- (j % 8) == 0 ? "\n\t" : " ", data[j]);
+ fprintf(fout, "%s0x%02x,", (j % 8) == 0 ? "\n\t" : " ",
+ data[j]);
crc16 = crc16_arg(data[j], crc16);
}
fprintf(fout, "\n");
- fprintf(fout, "\t0x%02x, 0x%02x, 0xff,"
+ fprintf(fout,
+ "\t0x%02x, 0x%02x, 0xff,"
" /* CRC, end bit, idle */\n",
crc16 >> 8, crc16 & 0xff);
}
@@ -96,16 +96,14 @@ int main(int argc, char **argv)
FILE *fout = NULL;
const char short_opts[] = "i:ho:";
- const struct option long_opts[] = {
- { "input", 1, NULL, 'i' },
+ const struct option long_opts[] = { { "input", 1, NULL, 'i' },
{ "help", 0, NULL, 'h' },
{ "out", 1, NULL, 'o' },
- { NULL }
- };
+ { NULL } };
const char usage[] = "USAGE: %s [-i <input>] -o <output>\n";
- while ((nopt = getopt_long(argc, argv, short_opts, long_opts,
- NULL)) != -1) {
+ while ((nopt = getopt_long(argc, argv, short_opts, long_opts, NULL)) !=
+ -1) {
switch (nopt) {
case 'i': /* -i or --input*/
input_name = optarg;
