Skip to content

Commit e1081cf

Browse files
author
SendaoYan
committed
8348536: Remove remain SIZE_FORMAT usage after JDK-8347990
Reviewed-by: dholmes, kbarrett
1 parent a6cc37f commit e1081cf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/hotspot/gtest/metaspace/test_blocktree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void test_find_nearest_fit_with_tree(const size_t sizes[], size_t request
143143
EXPECT_0(real_size);
144144
}
145145

146-
LOG(SIZE_FORMAT ": %zu.", request_size, real_size);
146+
LOG("%zu: %zu.", request_size, real_size);
147147

148148
}
149149

test/hotspot/gtest/metaspace/test_metaspace_misc.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ TEST_VM(metaspace, chunklevel_utils) {
7474

7575
// These tests seem to be really basic, but it is amazing what one can
7676
// break accidentally...
77-
LOG(SIZE_FORMAT, MAX_CHUNK_BYTE_SIZE);
78-
LOG(SIZE_FORMAT, MIN_CHUNK_BYTE_SIZE);
79-
LOG(SIZE_FORMAT, MIN_CHUNK_WORD_SIZE);
80-
LOG(SIZE_FORMAT, MAX_CHUNK_WORD_SIZE);
81-
LOG(SIZE_FORMAT, MAX_CHUNK_BYTE_SIZE);
77+
LOG("%zu", MAX_CHUNK_BYTE_SIZE);
78+
LOG("%zu", MIN_CHUNK_BYTE_SIZE);
79+
LOG("%zu", MIN_CHUNK_WORD_SIZE);
80+
LOG("%zu", MAX_CHUNK_WORD_SIZE);
81+
LOG("%zu", MAX_CHUNK_BYTE_SIZE);
8282
LOG("%u", (unsigned)ROOT_CHUNK_LEVEL);
8383
LOG("%u", (unsigned)HIGHEST_CHUNK_LEVEL);
8484
LOG("%u", (unsigned)LOWEST_CHUNK_LEVEL);

test/hotspot/gtest/nmt/test_nmt_totals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static totals_t get_totals() {
6565
EXPECT_LE(t_real.s, t_expected.s + leeway_s); \
6666
EXPECT_GE(t_real.ovrh, t_expected.ovrh - (leeway_n * sizeof(MallocHeader))); \
6767
EXPECT_LE(t_real.ovrh, t_expected.ovrh + (leeway_n * sizeof(MallocHeader))); \
68-
LOG("Deviation: n=" SSIZE_FORMAT ", s=" SSIZE_FORMAT ", ovrh=" SSIZE_FORMAT, \
68+
LOG("Deviation: n=%zd, s=%zd, ovrh=%zd", \
6969
(ssize_t)t_real.n - (ssize_t)t_expected.n, \
7070
(ssize_t)t_real.s - (ssize_t)t_expected.s, \
7171
(ssize_t)t_real.ovrh - (ssize_t)t_expected.ovrh); \

0 commit comments

Comments
 (0)