Skip to content

Commit fb1a956

Browse files
unkn0wNameunkn0wName
authored andcommitted
printf
1 parent 06afa89 commit fb1a956

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

find_kernel_func/3rdparty/find_xrefs.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,14 @@ void find_func_haed_link(const char* image, size_t image_size,
220220
parse_code_block_with_func_haed(group_name, v_code_block, result_map);
221221
v_code_block.clear();
222222
}
223-
if ((time(NULL) - start_time) > 5) {
223+
if ((time(NULL) - start_time) > 3) {
224224
start_time = time(NULL);
225-
float progress = (float)((float)insn->address * 100 / (float)image_size);
225+
float progress = (double)((double)insn->address * 100.0f/ (double)image_size);
226226
progress = progress > 100.0f ? 100.0f : progress;
227-
printf("progress: %.2f%%\n", progress);
227+
printf("Current search location:%p, percentage progress: %.2f%%\r", insn->address, progress);
228228
}
229229
}
230+
printf("\n");
230231
cs_free(insn, 1);
231232
cs_close(&handle);
232233
}

0 commit comments

Comments
 (0)