fix usage of nyx_debug_p() (add missing prefix)

This commit is contained in:
Sergej Schumilo 2022-09-22 05:19:45 +02:00
parent e83025a145
commit 80f22f77d6
2 changed files with 5 additions and 5 deletions

View File

@ -607,7 +607,7 @@ static void handle_hypercall_kafl_kasan(struct kvm_run *run, CPUState *cpu, uint
} else{
nyx_debug_p(CORE_PREFIX, "KASAN detected during initialization of stage 1 or stage 2 loader");
//hypercall_snd_char(KAFL_PROTO_KASAN);
nyx_debug_p("Protocol - SEND: KAFL_PROTO_KASAN");
nyx_debug_p(CORE_PREFIX, "Protocol - SEND: KAFL_PROTO_KASAN");
}
}

View File

@ -178,7 +178,7 @@ void handle_hypercall_kafl_nested_release(struct kvm_run *run, CPUState *cpu, ui
return;
//assert(false);
nyx_debug_p("%s %d", __func__, init_state);
nyx_debug_p(CORE_PREFIX, "%s %d", __func__, init_state);
//sleep(10);
/* magic */
@ -193,7 +193,7 @@ void handle_hypercall_kafl_nested_release(struct kvm_run *run, CPUState *cpu, ui
//synchronization_disable_pt(cpu);
nyx_debug_p("Protocol - SEND: KAFL_PROTO_RELEASE");
nyx_debug_p(CORE_PREFIX, "Protocol - SEND: KAFL_PROTO_RELEASE");
} else {
@ -206,7 +206,7 @@ void handle_hypercall_kafl_nested_release(struct kvm_run *run, CPUState *cpu, ui
//synchronization_disable_pt(cpu);
nyx_debug_p("%s UNLOCKED", __func__);
nyx_debug_p(CORE_PREFIX, "%s UNLOCKED", __func__);
// printf("INTEL PT is disabled!\n");
@ -217,7 +217,7 @@ void handle_hypercall_kafl_nested_release(struct kvm_run *run, CPUState *cpu, ui
//fast_reload_restore(get_fast_reload_snapshot());
qemu_mutex_unlock_iothread();
nyx_debug_p("%s UNLOCKED 2", __func__);
nyx_debug_p(CORE_PREFIX, "%s UNLOCKED 2", __func__);
//kvm_cpu_synchronize_state(cpu);