diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2007-05-23 18:24:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2007-05-23 18:24:58 +0000 |
commit | 7c1402f2208f3240de9f28f6ac48a24f526c430d (patch) | |
tree | dff2c9bdbc5f3555b7824f5c690c9571c7cf82a8 /flashrom.c | |
parent | ce532975cbe35d88f767c6305d272c8b6f16ccf7 (diff) | |
download | ast2050-flashrom-7c1402f2208f3240de9f28f6ac48a24f526c430d.zip ast2050-flashrom-7c1402f2208f3240de9f28f6ac48a24f526c430d.tar.gz |
Unify mmap error messages
Corresponding to flashrom svn r112 and coreboot v2 svn r2690.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -116,15 +116,16 @@ struct flashchip *probe_flash(struct flashchip *flash) #ifdef TS5300 // FIXME: Wrong place for this decision + // FIXME: This should be autodetected. It is trivial. flash_baseaddr = 0x9400000; #else flash_baseaddr = (0xffffffff - size + 1); #endif /* If getpagesize() > size -> - * `Error MMAP /dev/mem: Invalid argument' + * "Can't mmap memory using /dev/mem: Invalid argument" * This should never happen as we don't support any flash chips - * smaller than 4k or 8k yet. + * smaller than 4k or 8k (yet). */ if (getpagesize() > size) { @@ -136,7 +137,7 @@ struct flashchip *probe_flash(struct flashchip *flash) bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED, fd_mem, (off_t) flash_baseaddr); if (bios == MAP_FAILED) { - perror("Error: Can't mmap " MEM_DEV "."); + perror("Can't mmap memory using " MEM_DEV); exit(1); } flash->virtual_memory = bios; |