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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/ratp/md.c b/common/ratp/md.c
index 3e258c59a0..8221afaebc 100644
--- a/common/ratp/md.c
+++ b/common/ratp/md.c
@@ -68,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) {