Explorar el Código

mem: proper size printed in log message for init of shm

Daniel-Constantin Mierla hace 10 años
padre
commit
ca61f78309
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      mem/f_malloc.c
  2. 1 1
      mem/q_malloc.c
  3. 1 1
      mem/tlsf_malloc.c

+ 1 - 1
mem/f_malloc.c

@@ -1155,7 +1155,7 @@ int fm_malloc_init_shm_manager(void)
 	if (_fm_shm_block==0){
 	if (_fm_shm_block==0){
 		LOG(L_CRIT, "could not initialize fm shm memory pool\n");
 		LOG(L_CRIT, "could not initialize fm shm memory pool\n");
 		fprintf(stderr, "Too much fm shm memory demanded: %ld bytes\n",
 		fprintf(stderr, "Too much fm shm memory demanded: %ld bytes\n",
-						pkg_mem_size);
+						shm_mem_size);
 		return -1;
 		return -1;
 	}
 	}
 
 

+ 1 - 1
mem/q_malloc.c

@@ -1100,7 +1100,7 @@ int qm_malloc_init_shm_manager(void)
 	if (_qm_shm_block==0){
 	if (_qm_shm_block==0){
 		LOG(L_CRIT, "could not initialize qm shm memory pool\n");
 		LOG(L_CRIT, "could not initialize qm shm memory pool\n");
 		fprintf(stderr, "Too much qm shm memory demanded: %ld bytes\n",
 		fprintf(stderr, "Too much qm shm memory demanded: %ld bytes\n",
-						pkg_mem_size);
+						shm_mem_size);
 		return -1;
 		return -1;
 	}
 	}
 
 

+ 1 - 1
mem/tlsf_malloc.c

@@ -1438,7 +1438,7 @@ int tlsf_malloc_init_shm_manager(void)
 	} else {
 	} else {
 		LOG(L_CRIT, "could not initialize tlsf shm memory pool\n");
 		LOG(L_CRIT, "could not initialize tlsf shm memory pool\n");
 		fprintf(stderr, "Too much tlsf shm memory demanded: %ld bytes\n",
 		fprintf(stderr, "Too much tlsf shm memory demanded: %ld bytes\n",
-						pkg_mem_size);
+						shm_mem_size);
 		return -1;
 		return -1;
 	}
 	}