From patchwork Tue Mar 16 08:01:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [trivial,one-liner] be more specific in -mem-path error messages From: Michael Tokarev X-Patchwork-Id: 47812 Message-Id: <4B9F3AEA.8010408@msgid.tls.msk.ru> To: qemu-devel Date: Tue, 16 Mar 2010 11:01:46 +0300 The error message qemu gives when hugetlbfs is not accessible is cryptic at best: mkstemp: Permission denied Make it a bit more specific instead: unable to create backing store for hugepages: Permission denied Thanks! /mjt diff --git a/exec.c b/exec.c index 891e0ee..985bdde 100644 --- a/exec.c +++ b/exec.c @@ -2569,5 +2569,5 @@ 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;