Commit 9aab0118 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

fix code-style

parent f2f4ca8e
......@@ -64,17 +64,20 @@ int memory_mmap_init(int hugepages)
if (getuid() == 0) {
kernel_set_nr_hugepages(hugepages);
debug(LOG_MEM | 2, "Increased number of reserved hugepages from %d to %d", pagecnt, hugepages);
} else {
}
else {
warning("Failed to reserved hugepages. Please reserve manually by running as root:");
warning(" $ echo %d > /proc/sys/vm/nr_hugepages", hugepages);
}
}
#endif
memory_default = &memory_mmap_hugetlb;
} else {
}
else {
warning("Hugepage allocator disabled.");
memory_default = &memory_mmap;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment