Skip to content

Commit 4d29793

Browse files
committed
fix warning
1 parent 761a51f commit 4d29793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perf-map-file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ FILE *perf_map_open(pid_t pid) {
1010
}
1111

1212
void perf_map_write_entry(FILE *method_file, const void* code_addr, unsigned int code_size, const char* entry) {
13-
fprintf(method_file, "%lx %x %s\n", code_addr, code_size, entry);
13+
fprintf(method_file, "%lx %x %s\n", (unsigned long) code_addr, code_size, entry);
1414
fflush(method_file);
1515
}

0 commit comments

Comments
 (0)