From 72f95f92f802b57cd4cea447cd39d1be81079fa8 Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Mon, 15 Jun 2020 13:24:15 +0900 Subject: [PATCH] TO RESET: hugefileobj: show debug messages Change-Id: I904c811c13a59c0db74052bc92f6661a3e1b5d34 --- kernel/hugefileobj.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/hugefileobj.c b/kernel/hugefileobj.c index 628cf38f..07348992 100644 --- a/kernel/hugefileobj.c +++ b/kernel/hugefileobj.c @@ -85,7 +85,11 @@ static int hugefileobj_get_page(struct memobj *memobj, off_t off, } memset(obj->pages[pgind], 0, obj->pgsize); +#ifndef ENABLE_FUGAKU_HACKS dkprintf("%s: obj: 0x%lx, allocated page for off: %lu" +#else + kprintf("%s: obj: 0x%lx, allocated page for off: %lu" +#endif " (ind: %d), page size: %lu\n", __func__, obj, off, pgind, obj->pgsize); } @@ -274,7 +278,11 @@ int hugefileobj_create(struct memobj *memobj, size_t len, off_t off, obj->nr_pages = nr_pages; obj->pages = pages; +#ifndef ENABLE_FUGAKU_HACKS dkprintf("%s: obj: 0x%lx, VA: 0x%lx, page array allocated" +#else + kprintf("%s: obj: 0x%lx, VA: 0x%lx, page array allocated" +#endif " for %d pages, pagesize: %lu\n", __func__, obj,