From f53a24e7ebce155965cc95f3f8d99ad4c76ead83 Mon Sep 17 00:00:00 2001 From: quackerd Date: Thu, 9 Jun 2022 23:21:55 +0800 Subject: [PATCH] fix verbose message --- alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alloc.c b/alloc.c index a9c9489..57553fc 100644 --- a/alloc.c +++ b/alloc.c @@ -35,14 +35,14 @@ topo_alloc_init(struct topo_desc * desc, int verbose) ret = cpuset_setdomain(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid, sizeof(tmp_domain), &tmp_domain, DOMAINSET_POLICY_PREFER); if (ret != 0) { - fprintf(stderr, "libnm: cpuset_setdomain failed with %d\n", errno); + fprintf(stderr, "libtopo: cpuset_setdomain failed with %d\n", errno); return ret; } for (unsigned int j = 0; j < ALLOC_MEM_REGION_NUM; j++) { if ((desc->mem_regions[i][j] = mmap(NULL, ALLOC_MEM_OBJ_NUM * ALLOC_MEM_OBJ_SIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_ALIGNED_SUPER | MAP_NOCORE | MAP_PRIVATE | MAP_NOSYNC, -1, 0)) == MAP_FAILED) { - fprintf(stderr, "libnm: mmap failed with %d\n", errno); + fprintf(stderr, "libtopo: mmap failed with %d\n", errno); return -1; } @@ -52,7 +52,7 @@ topo_alloc_init(struct topo_desc * desc, int verbose) } if (verbose) { - fprintf(stdout, "libnm: reserved %u bytes (%u MB) on node %d. vaddr: 0x%p\n", ALLOC_MEM_OBJ_NUM * ALLOC_MEM_OBJ_SIZE, + fprintf(stdout, "libtopo: reserved %u bytes (%u MB) on node %d. vaddr: 0x%p\n", ALLOC_MEM_OBJ_NUM * ALLOC_MEM_OBJ_SIZE, ALLOC_MEM_OBJ_SIZE * ALLOC_MEM_OBJ_NUM / 1024 / 1024, i, desc->mem_regions[i][j]); }