提交 6adc0549 编写于 作者: M Michael Tokarev 提交者: Aurelien Jarno

be more specific in -mem-path error messages

Signed-Off-By: NMichael Tokarev <mjt@tls.msk.ru>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 44459349
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册