feat: add log

This commit is contained in:
tqcq 2024-10-24 03:29:30 +00:00
parent 74730a17be
commit f62c2d393c

View File

@ -24,6 +24,7 @@ alloc_buffer(MemoryBuffer *mem)
uint64_t alloc_flags = MAP_PRIVATE | MAP_POPULATE;
if (mem->flags & F_ALLOC_HUGE) {
fprintf(stderr, "Enable HUGE\n");
if (mem->fd == 0) {
fprintf(stderr, "[ERROR] - Missing file descriptor to allocate hugepage\n");
exit(1);