sim/rx: use PRIx64 in printf format string

Silence a GCC compiler warning by using PRIx64 in printf format string
instead of hard coded "llx".

sim/rx/ChangeLog:

	* reg.c (trace_register_changes): Use PRIx64 in printf format
	string.
This commit is contained in:
Andrew Burgess
2021-02-01 11:23:53 +00:00
parent 783a7b12d3
commit ae41b4ce9f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
* reg.c (trace_register_changes): Use PRIx64 in printf format
string.
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
* syscalls.c (rx_syscall): Move declaration of some variables to

View File

@ -548,8 +548,8 @@ trace_register_changes (void)
if (oldregs.r_acc != regs.r_acc)
{
if (tag) { printf ("%s", tag); tag = 0; }
printf(" acc %016llx:", oldregs.r_acc);
printf("%016llx", regs.r_acc);
printf(" acc %016" PRIx64 ":", oldregs.r_acc);
printf("%016" PRIx64, regs.r_acc);
oldregs.r_acc = regs.r_acc;
}