sim/rx: provide a format string for printf
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 1 Feb 2021 11:12:56 +0000 (11:12 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
commitb9fe995797542ac6a2bd05c1864eeb53dbfdebf7
treec7557b6bb2ab942a9f1c3b49b06412b8426c37c8
parent4b426396368fd250a502a9c547da7143af4afbe0
sim/rx: provide a format string for printf

Calling printf with the format being a non constant string results in
a GCC warning:

  warning: format not a string literal and no format arguments [-Wformat-nonliteral]

Provide a constant format string to printf in the few places this
warning is triggered.

sim/rx/ChangeLog:

* reg.c (fpsw2str): Provide a format string to printf.
(trace_register_changes): Likewise.
sim/rx/ChangeLog
sim/rx/reg.c