From 6adc05492fce75b530b3534cb6ec055ac3b4afb5 Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Sat, 27 Mar 2010 16:35:37 +0300 Subject: [PATCH] be more specific in -mem-path error messages Signed-Off-By: Michael Tokarev Signed-off-by: Aurelien Jarno --- exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 14767b767..5dc98bdee 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; }