diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2007-05-23 18:24:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2007-05-23 18:24:58 +0000 |
commit | a18501dae89c0ede2a208f8f72449e2357d2c88b (patch) | |
tree | bf8ac969fd9b3f08b0d47e71988c8fa1fc138b7a /util/flashrom/lbtable.c | |
parent | f8eea5cd1c641495bdc635e61575597a82629ef8 (diff) | |
download | coreboot-a18501dae89c0ede2a208f8f72449e2357d2c88b.tar.xz |
Unify mmap error messages in flashrom (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2690 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/lbtable.c')
-rw-r--r-- | util/flashrom/lbtable.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/flashrom/lbtable.c b/util/flashrom/lbtable.c index d65d1a0c4d..bbee991e2f 100644 --- a/util/flashrom/lbtable.c +++ b/util/flashrom/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; |