This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 5930362eaf96ea150987c4e4e69b17f09a8a8f3a (commit)
from 810bc2ee9b5285e1692a6b0c7457ca503f381e1e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5930362eaf96ea150987c4e4e69b17f09a8a8f3a
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Nov 1 15:22:59 2019 +0200
linux-gen: shm: improve memory allocation error messages
Include page type (normal/huge) and filename in error messages.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
diff --git a/platform/linux-generic/odp_ishm.c b/platform/linux-generic/odp_ishm.c
index cd483d146..41f3979bf 100644
--- a/platform/linux-generic/odp_ishm.c
+++ b/platform/linux-generic/odp_ishm.c
@@ -681,8 +681,8 @@ static int create_file(int block_index, huge_flag_t huge, uint64_t len,
fd = open(filename, oflag, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0) {
if (huge != HUGE)
- ODP_ERR("open failed for %s: %s.\n",
- filename, strerror(errno));
+ ODP_ERR("Normal page open failed: file=%s, "
+ "err=\"%s\"\n", filename, strerror(errno));
return -1;
}
@@ -694,8 +694,9 @@ static int create_file(int block_index, huge_flag_t huge, uint64_t len,
}
if (ret == -1) {
- ODP_ERR("memory allocation failed: fd=%d, err=%s.\n",
- fd, strerror(errno));
+ ODP_ERR("%s memory allocation failed: fd=%d, file=%s, "
+ "err=\"%s\"\n", (huge == HUGE) ? "Huge page" :
+ "Normal page", fd, filename, strerror(errno));
close(fd);
unlink(filename);
return -1;
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_ishm.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--