Some cosmetic cleanups in the flashrom code and output.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2873 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann
2007-10-17 23:55:15 +00:00
parent 7dabe5ea0d
commit dcb9abdf4c
20 changed files with 48 additions and 49 deletions

View File

@ -143,7 +143,7 @@ struct flashchip *probe_flash(struct flashchip *flash)
flash->virtual_memory = bios;
if (flash->probe(flash) == 1) {
printf("%s found at physical address: 0x%lx\n",
printf("%s found at physical address 0x%lx.\n",
flash->name, flash_baseaddr);
return flash;
}
@ -161,7 +161,7 @@ int verify_flash(struct flashchip *flash, uint8_t *buf)
int total_size = flash->total_size * 1024;
volatile uint8_t *bios = flash->virtual_memory;
printf("Verifying flash ");
printf("Verifying flash... ");
if (verbose)
printf("address: 0x00000000\b\b\b\b\b\b\b\b\b\b");
@ -174,7 +174,7 @@ int verify_flash(struct flashchip *flash, uint8_t *buf)
if (verbose) {
printf("0x%08x ", idx);
}
printf("- FAILED\n");
printf("FAILED!\n");
return 1;
}
@ -184,7 +184,7 @@ int verify_flash(struct flashchip *flash, uint8_t *buf)
if (verbose)
printf("\b\b\b\b\b\b\b\b\b\b ");
printf("- VERIFIED \n");
printf("VERIFIED. \n");
return 0;
}
@ -369,7 +369,7 @@ int main(int argc, char *argv[])
exit(1);
}
printf("Flash part is %s (%d KB)\n", flash->name, flash->total_size);
printf("Flash part is %s (%d KB).\n", flash->name, flash->total_size);
if (!(read_it | write_it | verify_it | erase_it)) {
printf("No operations were specified.\n");