Skip to content

Commit

Permalink
Fix wrong instrucitons in err msg
Browse files Browse the repository at this point in the history
The error message instructed the user of a fix, but told the user to
set the wrong enviromnent variable.


Former-commit-id: 369c02f205295035585660aaea41f5eaef17865f
  • Loading branch information
zbeekman committed Oct 28, 2024
1 parent 7160a53 commit 274fc2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Profile/TauMmapMemMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int Tau_MemMgr_findFit(int tid, size_t size)
// return index to new block
return getMemSummary(tid).numBlocks - 1;
} else {
printf("********* TAU_MEMMGR_MAX_MEMBLOCKS_REACHED\n Current is %d, increase environmental variable TAU_MMEMGR_MAX_MEMBLOCS \n", TauEnv_get_env_memmgr_max_memblocks()); fflush(stdout);
printf("********* TAU_MEMMGR_MAX_MEMBLOCKS_REACHED\n Current is %d, increase environmental variable TAU_MEMMGR_MAX_BLOCKS\n", TauEnv_get_env_memmgr_max_memblocks()); fflush(stdout);
return TAU_MEMMGR_MAX_MEMBLOCKS_REACHED;
}
}
Expand Down Expand Up @@ -284,7 +284,7 @@ void * Tau_MemMgr_malloc(int tid, size_t size)
break;
case TAU_MEMMGR_MAX_MEMBLOCKS_REACHED:
printf("Tau_MemMgr_malloc: MMAP MAX MEMBLOCKS REACHED!\n");
printf("Current is %d, increase environmental variable TAU_MMEMGR_MAX_MEMBLOCS \n", TauEnv_get_env_memmgr_max_memblocks()); fflush(stdout);
printf("Current is %d, increase environmental variable TAU_MEMMGR_MAX_BLOCKS\n", TauEnv_get_env_memmgr_max_memblocks()); fflush(stdout);
break;
default:
printf("Tau_MemMgr_malloc: UNKNOWN ERROR!\n");
Expand Down

0 comments on commit 274fc2f

Please sign in to comment.