diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:25:48 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 22:00:25 +0000 |
commit | 8ca104526b63c3f5c880ba34b913f52e602bd688 (patch) | |
tree | 7ac9856ba364cc247058b8a3c3f047f30f287dc2 /util | |
parent | 02be5ff93e965129d3a85c46bd7e54b3a22a8a1d (diff) | |
download | chrome-ec-8ca104526b63c3f5c880ba34b913f52e602bd688.tar.gz |
util/ec_flash.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I7512e66ef1a850ae9108d34be9b8ac6961e29714
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730611
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ec_flash.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/util/ec_flash.c b/util/ec_flash.c index ffa4eca4b7..5025b79b9e 100644 --- a/util/ec_flash.c +++ b/util/ec_flash.c @@ -27,8 +27,8 @@ int ec_flash_read(uint8_t *buf, int offset, int size) for (i = 0; i < size; i += ec_max_insize) { p.offset = offset + i; p.size = MIN(size - i, ec_max_insize); - rv = ec_command(EC_CMD_FLASH_READ, 0, - &p, sizeof(p), ec_inbuf, p.size); + rv = ec_command(EC_CMD_FLASH_READ, 0, &p, sizeof(p), ec_inbuf, + p.size); if (rv < 0) { fprintf(stderr, "Read error at offset %d\n", i); return rv; @@ -58,7 +58,8 @@ int ec_flash_verify(const uint8_t *buf, int offset, int size) for (i = 0; i < size; i++) { if (buf[i] != rbuf[i]) { - fprintf(stderr, "Mismatch at offset 0x%x: " + fprintf(stderr, + "Mismatch at offset 0x%x: " "want 0x%02x, got 0x%02x\n", i, buf[i], rbuf[i]); free(rbuf); @@ -76,12 +77,15 @@ int ec_flash_verify(const uint8_t *buf, int offset, int size) */ static int get_flash_info_v2(struct ec_response_flash_info_2 *info_response) { - struct ec_params_flash_info_2 info_params = { - /* - * By setting this to zero we indicate that we don't care - * about getting the bank description in the response. - */ - .num_banks_desc = 0 + struct ec_params_flash_info_2 info_params = { /* + * By setting this to zero + * we indicate that we + * don't care about + * getting the bank + * description in the + * response. + */ + .num_banks_desc = 0 }; return ec_command(EC_CMD_FLASH_INFO, 2, &info_params, |