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>
diff --git a/flashrom.c b/flashrom.c
index 6a91089..988e010 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -664,7 +664,7 @@
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 @@
* 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 @@
flash->name, k, j);
ret = 1;
}
+ }
}
return ret;
}
@@ -1198,7 +1199,7 @@
"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");
}
}