summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-05-24 19:17:29 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-05-24 19:17:29 +0000
commita88088530e9ed523fef897a8a8dfeb4d4e431318 (patch)
treeb351279f01accd626ff4ebf7448193fd6959c95c /flashrom.c
parent7ed78c88b6aa9830ff2d84dfca4bb62e4471a300 (diff)
downloadast2050-flashrom-a88088530e9ed523fef897a8a8dfeb4d4e431318.zip
ast2050-flashrom-a88088530e9ed523fef897a8a8dfeb4d4e431318.tar.gz
Minor cosmetics
Corresponding to flashrom svn r116 and coreboot v2 svn r2696. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c
index 8ada918..751c19c 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -105,7 +105,7 @@ int map_flash_registers(struct flashchip *flash)
size_t size = flash->total_size * 1024;
registers = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
+ fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
if (registers == MAP_FAILED) {
perror("Can't mmap registers using " MEM_DEV);
@@ -448,7 +448,8 @@ int main(int argc, char *argv[])
// ////////////////////////////////////////////////////////////
if (exclude_end_position - exclude_start_position > 0)
memcpy(buf + exclude_start_position,
- (const char *)flash->virtual_memory + exclude_start_position,
+ (const char *)flash->virtual_memory +
+ exclude_start_position,
exclude_end_position - exclude_start_position);
exclude_start_page = exclude_start_position / flash->page_size;
OpenPOWER on IntegriCloud