aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2010-03-27 16:35:37 +0300
committerAurelien Jarno <aurelien@aurel32.net>2010-03-27 15:26:36 +0100
commit6adc05492fce75b530b3534cb6ec055ac3b4afb5 (patch)
treecf6496ee7399049fc96cd7d3c625fec47302503e /exec.c
parent444593493c875aa446b5e5c8fea32d43544603b0 (diff)
be more specific in -mem-path error messages
Signed-Off-By: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index 14767b7672..5dc98bdeef 100644
--- a/exec.c
+++ b/exec.c
@@ -2668,7 +2668,7 @@ static long gethugepagesize(const char *path)
} while (ret != 0 && errno == EINTR);
if (ret != 0) {
- perror("statfs");
+ perror(path);
return 0;
}
@@ -2708,7 +2708,7 @@ static void *file_ram_alloc(ram_addr_t memory, const char *path)
fd = mkstemp(filename);
if (fd < 0) {
- perror("mkstemp");
+ perror("unable to create backing store for hugepages");
free(filename);
return NULL;
}