We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 600aa88 commit f891221Copy full SHA for f891221
tools/testing/selftests/kvm/x86_64/debug_regs.c
@@ -166,7 +166,7 @@ int main(void)
166
/* Test single step */
167
target_rip = CAST_TO_RIP(ss_start);
168
target_dr6 = 0xffff4ff0ULL;
169
- for (i = 0; i < (sizeof(ss_size) / sizeof(ss_size[0])); i++) {
+ for (i = 0; i < ARRAY_SIZE(ss_size); i++) {
170
target_rip += ss_size[i];
171
memset(&debug, 0, sizeof(debug));
172
debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP |
0 commit comments