Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 42b1a45

Browse files
enh-googleGerrit Code Review
authored andcommitted
Merge "linker_note_gnu_property_test: clarify naming." into main
2 parents f2f1253 + 54faa65 commit 42b1a45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

linker/linker_note_gnu_property_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ class GnuPropertySectionBuilder {
137137
dump_member("entries ", entries);
138138
if (entries > 0) {
139139
std::cout << " raw data:";
140-
const uintptr_t offset = note->nhdr.n_descsz + 16;
141-
for (uintptr_t offs = 16; offs < offset; ++offs) {
140+
const uintptr_t end = note->nhdr.n_descsz + 16;
141+
for (uintptr_t offset = 16; offset < end; ++offset) {
142142
std::cout << std::hex;
143-
if ((offs % 8) == 0) {
143+
if ((offset % 8) == 0) {
144144
std::cout << "\n ";
145145
}
146-
auto value = static_cast<unsigned>(section[offs]);
146+
auto value = static_cast<unsigned>(section[offset]);
147147
std::cout << " ";
148148
if (value < 0x10) {
149149
std::cout << "0";
150150
}
151-
std::cout << static_cast<unsigned>(section[offs]);
151+
std::cout << static_cast<unsigned>(section[offset]);
152152
}
153153
std::cout << std::dec << "\n";
154154
}

0 commit comments

Comments
 (0)