mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
sim: bpf: fix printf warnings on 32-bit systems
Use PRI macros to display 64-bit types instead of assuming long is a 64-bit type itself.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2021-06-28 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* bpf.c (bpfbf_exit): Use PRI 64 formats.
|
||||
|
||||
2021-06-27 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cpu.c (bpfbf_record_trace_results): Delete function.
|
||||
|
@ -186,7 +186,7 @@ bpfbf_exit (SIM_CPU *current_cpu)
|
||||
/* r0 holds "return code" */
|
||||
DI r0 = GET_H_GPR (0);
|
||||
|
||||
printf ("exit %ld (0x%lx)\n", r0, r0);
|
||||
printf ("exit %" PRId64 " (0x%" PRIx64 ")\n", r0, r0);
|
||||
|
||||
sim_engine_halt (sd, current_cpu, NULL, CPU_PC_GET (current_cpu),
|
||||
sim_exited, 0 /* sigrc */);
|
||||
|
Reference in New Issue
Block a user