sim-card
/
qemu
Archived
10
0
Fork 0

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>
This commit is contained in:
Michael Tokarev 2010-03-27 16:35:37 +03:00 committed by Aurelien Jarno
parent 444593493c
commit 6adc05492f
1 changed files with 2 additions and 2 deletions

4
exec.c
View File

@ -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;
}