mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-06 08:07:07 +02:00
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>
This commit is contained in:

committed by
Stefan Reinauer

parent
ce532975cb
commit
7c1402f220
@ -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;
|
||||
|
Reference in New Issue
Block a user