summaryrefslogtreecommitdiffstats
path: root/common/ratp/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ratp/md.c')
-rw-r--r--common/ratp/md.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/ratp/md.c b/common/ratp/md.c
index a25cbf1127..8221afaebc 100644
--- a/common/ratp/md.c
+++ b/common/ratp/md.c
@@ -1,9 +1,6 @@
/*
* Copyright (c) 2011-2018 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
- * See file CREDITS for list of people who contributed to this
- * project.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
@@ -71,8 +68,10 @@ static int do_ratp_mem_md(const char *filename,
char *buf = NULL;
fd = open_and_lseek(filename, O_RWSIZE_1 | O_RDONLY, start);
- if (fd < 0)
+ if (fd < 0) {
+ printf("Could not open \"%s\": %m\n", filename);
return -errno;
+ }
map = memmap(fd, PROT_READ);
if (map != MAP_FAILED) {