Browse code

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

Daniel-Constantin Mierla authored on 23/09/2015 10:34:01
Showing 3 changed files
... ...
@@ -1155,7 +1155,7 @@ int fm_malloc_init_shm_manager(void)
1155 1155
 	if (_fm_shm_block==0){
1156 1156
 		LOG(L_CRIT, "could not initialize fm shm memory pool\n");
1157 1157
 		fprintf(stderr, "Too much fm shm memory demanded: %ld bytes\n",
1158
-						pkg_mem_size);
1158
+						shm_mem_size);
1159 1159
 		return -1;
1160 1160
 	}
1161 1161
 
... ...
@@ -1100,7 +1100,7 @@ int qm_malloc_init_shm_manager(void)
1100 1100
 	if (_qm_shm_block==0){
1101 1101
 		LOG(L_CRIT, "could not initialize qm shm memory pool\n");
1102 1102
 		fprintf(stderr, "Too much qm shm memory demanded: %ld bytes\n",
1103
-						pkg_mem_size);
1103
+						shm_mem_size);
1104 1104
 		return -1;
1105 1105
 	}
1106 1106
 
... ...
@@ -1438,7 +1438,7 @@ int tlsf_malloc_init_shm_manager(void)
1438 1438
 	} else {
1439 1439
 		LOG(L_CRIT, "could not initialize tlsf shm memory pool\n");
1440 1440
 		fprintf(stderr, "Too much tlsf shm memory demanded: %ld bytes\n",
1441
-						pkg_mem_size);
1441
+						shm_mem_size);
1442 1442
 		return -1;
1443 1443
 	}
1444 1444