]> git.proxmox.com Git - qemu.git/commitdiff
be more specific in -mem-path error messages
authorMichael Tokarev <mjt@tls.msk.ru>
Sat, 27 Mar 2010 13:35:37 +0000 (16:35 +0300)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Mar 2010 14:26:36 +0000 (15:26 +0100)
Signed-Off-By: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
exec.c

diff --git a/exec.c b/exec.c
index 14767b767270aad0e2f850fef2ede72d435c0e7e..5dc98bdeefaa268f1fc1abda9e7d9d9bddc5bf86 100644 (file)
--- 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;
     }