summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-03-13 17:28:29 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-03-13 17:28:29 +0000
commit439597032eae0f41745d9173805945c5c85475eb (patch)
tree76c0a1816f51012775006aa8c82bdfe78901b5ab /flashrom.c
parent645c6df21a9570da7f8ac07fe740a0df3a1d4d1c (diff)
downloadast2050-flashrom-439597032eae0f41745d9173805945c5c85475eb.zip
ast2050-flashrom-439597032eae0f41745d9173805945c5c85475eb.tar.gz
Various coding style and cosmetic changes
- Fix coding-style, whitespace, and indentation in a few places. - Consistently use the same spelling ("Super I/O") everywhere. Corresponding to flashrom svn r933. - Make some flashrom stdout output look a bit nicer. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/flashrom.c b/flashrom.c
index 6a91089..988e010 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -664,7 +664,7 @@ int need_erase(uint8_t *have, uint8_t *want, int len, enum write_granularity gra
case write_gran_256bytes:
for (j = 0; j < len / 256; j++) {
limit = min (256, len - j * 256);
- /* Are have and want identical? */
+ /* Are 'have' and 'want' identical? */
if (!memcmp(have + j * 256, want + j * 256, limit))
continue;
/* have needs to be in erased state. */
@@ -1028,7 +1028,7 @@ int selfcheck_eraseblocks(struct flashchip *flash)
* layouts. That would imply "magic" erase functions. The
* easiest way to check this is with function pointers.
*/
- for (j = k + 1; j < NUM_ERASEFUNCTIONS; j++)
+ for (j = k + 1; j < NUM_ERASEFUNCTIONS; j++) {
if (eraser.block_erase ==
flash->block_erasers[j].block_erase) {
msg_gerr("ERROR: Flash chip %s erase function "
@@ -1037,6 +1037,7 @@ int selfcheck_eraseblocks(struct flashchip *flash)
flash->name, k, j);
ret = 1;
}
+ }
}
return ret;
}
@@ -1198,7 +1199,7 @@ void check_chip_supported(struct flashchip *flash)
"this flash part. Please include the flashrom\noutput "
"with the additional -V option for all operations you "
"tested (-V, -rV,\n-wV, -EV), and mention which "
- "mainboard or programmer you tested. Thanks for your "
+ "mainboard or programmer you tested.\nThanks for your "
"help!\n===\n");
}
}
OpenPOWER on IntegriCloud