summaryrefslogtreecommitdiffstats
path: root/lbtable.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-05-23 18:24:58 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2007-05-23 18:24:58 +0000
commit7c1402f2208f3240de9f28f6ac48a24f526c430d (patch)
treedff2c9bdbc5f3555b7824f5c690c9571c7cf82a8 /lbtable.c
parentce532975cbe35d88f767c6305d272c8b6f16ccf7 (diff)
downloadast2050-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 'lbtable.c')
-rw-r--r--lbtable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lbtable.c b/lbtable.c
index d65d1a0..bbee991 100644
--- a/lbtable.c
+++ b/lbtable.c
@@ -161,9 +161,7 @@ int linuxbios_init(void)
low_1MB = mmap(0, 1024 * 1024, PROT_READ, MAP_SHARED, fd_mem,
0x00000000);
if (low_1MB == MAP_FAILED) {
- fprintf(stderr,
- "Can not mmap " MEM_DEV " at %08lx errno(%d):%s\n",
- 0x00000000UL, errno, strerror(errno));
+ perror("Can't mmap memory using " MEM_DEV);
exit(-2);
}
lb_table = 0;
OpenPOWER on IntegriCloud