@@ -76,7 +76,7 @@ void CgroupV1Controller::set_subsystem_path(char *cgroup_path) {
7676 */
7777jlong CgroupV1MemoryController::uses_mem_hierarchy () {
7878 GET_CONTAINER_INFO (jlong, this , " /memory.use_hierarchy" ,
79- " Use Hierarchy is: " JLONG_FORMAT, JLONG_FORMAT, use_hierarchy);
79+ " Use Hierarchy is: " , JLONG_FORMAT, JLONG_FORMAT, use_hierarchy);
8080 return use_hierarchy;
8181}
8282
@@ -90,7 +90,7 @@ void CgroupV1MemoryController::set_subsystem_path(char *cgroup_path) {
9090
9191jlong CgroupV1Subsystem::read_memory_limit_in_bytes () {
9292 GET_CONTAINER_INFO (julong, _memory->controller (), " /memory.limit_in_bytes" ,
93- " Memory Limit is: " JULONG_FORMAT, JULONG_FORMAT, memlimit);
93+ " Memory Limit is: " , JULONG_FORMAT, JULONG_FORMAT, memlimit);
9494
9595 if (memlimit >= os::Linux::physical_memory ()) {
9696 log_trace (os, container)(" Non-Hierarchical Memory Limit is: Unlimited" );
@@ -116,7 +116,7 @@ jlong CgroupV1Subsystem::read_memory_limit_in_bytes() {
116116jlong CgroupV1Subsystem::memory_and_swap_limit_in_bytes () {
117117 julong host_total_memsw;
118118 GET_CONTAINER_INFO (julong, _memory->controller (), " /memory.memsw.limit_in_bytes" ,
119- " Memory and Swap Limit is: " JULONG_FORMAT, JULONG_FORMAT, memswlimit);
119+ " Memory and Swap Limit is: " , JULONG_FORMAT, JULONG_FORMAT, memswlimit);
120120 host_total_memsw = os::Linux::host_swap () + os::Linux::physical_memory ();
121121 if (memswlimit >= host_total_memsw) {
122122 log_trace (os, container)(" Non-Hierarchical Memory and Swap Limit is: Unlimited" );
@@ -154,13 +154,13 @@ jlong CgroupV1Subsystem::memory_and_swap_limit_in_bytes() {
154154
155155jlong CgroupV1Subsystem::read_mem_swappiness () {
156156 GET_CONTAINER_INFO (julong, _memory->controller (), " /memory.swappiness" ,
157- " Swappiness is: " JULONG_FORMAT, JULONG_FORMAT, swappiness);
157+ " Swappiness is: " , JULONG_FORMAT, JULONG_FORMAT, swappiness);
158158 return swappiness;
159159}
160160
161161jlong CgroupV1Subsystem::memory_soft_limit_in_bytes () {
162162 GET_CONTAINER_INFO (julong, _memory->controller (), " /memory.soft_limit_in_bytes" ,
163- " Memory Soft Limit is: " JULONG_FORMAT, JULONG_FORMAT, memsoftlimit);
163+ " Memory Soft Limit is: " , JULONG_FORMAT, JULONG_FORMAT, memsoftlimit);
164164 if (memsoftlimit >= os::Linux::physical_memory ()) {
165165 log_trace (os, container)(" Memory Soft Limit is: Unlimited" );
166166 return (jlong)-1 ;
@@ -180,7 +180,7 @@ jlong CgroupV1Subsystem::memory_soft_limit_in_bytes() {
180180 */
181181jlong CgroupV1Subsystem::memory_usage_in_bytes () {
182182 GET_CONTAINER_INFO (jlong, _memory->controller (), " /memory.usage_in_bytes" ,
183- " Memory Usage is: " JLONG_FORMAT, JLONG_FORMAT, memusage);
183+ " Memory Usage is: " , JLONG_FORMAT, JLONG_FORMAT, memusage);
184184 return memusage;
185185}
186186
@@ -194,20 +194,20 @@ jlong CgroupV1Subsystem::memory_usage_in_bytes() {
194194 */
195195jlong CgroupV1Subsystem::memory_max_usage_in_bytes () {
196196 GET_CONTAINER_INFO (jlong, _memory->controller (), " /memory.max_usage_in_bytes" ,
197- " Maximum Memory Usage is: " JLONG_FORMAT, JLONG_FORMAT, memmaxusage);
197+ " Maximum Memory Usage is: " , JLONG_FORMAT, JLONG_FORMAT, memmaxusage);
198198 return memmaxusage;
199199}
200200
201201
202202jlong CgroupV1Subsystem::kernel_memory_usage_in_bytes () {
203203 GET_CONTAINER_INFO (jlong, _memory->controller (), " /memory.kmem.usage_in_bytes" ,
204- " Kernel Memory Usage is: " JLONG_FORMAT, JLONG_FORMAT, kmem_usage);
204+ " Kernel Memory Usage is: " , JLONG_FORMAT, JLONG_FORMAT, kmem_usage);
205205 return kmem_usage;
206206}
207207
208208jlong CgroupV1Subsystem::kernel_memory_limit_in_bytes () {
209209 GET_CONTAINER_INFO (julong, _memory->controller (), " /memory.kmem.limit_in_bytes" ,
210- " Kernel Memory Limit is: " JULONG_FORMAT, JULONG_FORMAT, kmem_limit);
210+ " Kernel Memory Limit is: " , JULONG_FORMAT, JULONG_FORMAT, kmem_limit);
211211 if (kmem_limit >= os::Linux::physical_memory ()) {
212212 return (jlong)-1 ;
213213 }
@@ -216,7 +216,7 @@ jlong CgroupV1Subsystem::kernel_memory_limit_in_bytes() {
216216
217217jlong CgroupV1Subsystem::kernel_memory_max_usage_in_bytes () {
218218 GET_CONTAINER_INFO (jlong, _memory->controller (), " /memory.kmem.max_usage_in_bytes" ,
219- " Maximum Kernel Memory Usage is: " JLONG_FORMAT, JLONG_FORMAT, kmem_max_usage);
219+ " Maximum Kernel Memory Usage is: " , JLONG_FORMAT, JLONG_FORMAT, kmem_max_usage);
220220 return kmem_max_usage;
221221}
222222
@@ -254,13 +254,13 @@ char * CgroupV1Subsystem::cpu_cpuset_memory_nodes() {
254254 */
255255int CgroupV1Subsystem::cpu_quota () {
256256 GET_CONTAINER_INFO (int , _cpu->controller (), " /cpu.cfs_quota_us" ,
257- " CPU Quota is: %d" , " %d" , quota);
257+ " CPU Quota is: " , " %d" , " %d" , quota);
258258 return quota;
259259}
260260
261261int CgroupV1Subsystem::cpu_period () {
262262 GET_CONTAINER_INFO (int , _cpu->controller (), " /cpu.cfs_period_us" ,
263- " CPU Period is: %d" , " %d" , period);
263+ " CPU Period is: " , " %d" , " %d" , period);
264264 return period;
265265}
266266
@@ -276,7 +276,7 @@ int CgroupV1Subsystem::cpu_period() {
276276 */
277277int CgroupV1Subsystem::cpu_shares () {
278278 GET_CONTAINER_INFO (int , _cpu->controller (), " /cpu.shares" ,
279- " CPU Shares is: %d" , " %d" , shares);
279+ " CPU Shares is: " , " %d" , " %d" , shares);
280280 // Convert 1024 to no shares setup
281281 if (shares == 1024 ) return -1 ;
282282
@@ -316,6 +316,6 @@ jlong CgroupV1Subsystem::pids_max() {
316316jlong CgroupV1Subsystem::pids_current () {
317317 if (_pids == NULL ) return OSCONTAINER_ERROR;
318318 GET_CONTAINER_INFO (jlong, _pids, " /pids.current" ,
319- " Current number of tasks is: " JLONG_FORMAT, JLONG_FORMAT, pids_current);
319+ " Current number of tasks is: " , JLONG_FORMAT, JLONG_FORMAT, pids_current);
320320 return pids_current;
321321}
0 commit comments