From 258f251cfae5d830cd53f7770c0204b4908156c4 Mon Sep 17 00:00:00 2001 From: stuge Date: Fri, 23 Jan 2009 05:23:06 +0000 Subject: Original v2 revision: 3890 flashrom: Check all mmap() calls and print helpful Linux error message. Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@386 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- cbtable.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cbtable.c') diff --git a/cbtable.c b/cbtable.c index cc3a73c..e4ae0f9 100644 --- a/cbtable.c +++ b/cbtable.c @@ -191,6 +191,7 @@ int coreboot_init(void) 0x00000000); if (low_1MB == MAP_FAILED) { perror("Can't mmap memory using " MEM_DEV); + mmap_errmsg(); exit(-2); } lb_table = 0; -- cgit v1.2.1