diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:23:08 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:25:04 -0500 |
commit | fb8d4e59af8a0faf6f38499760546f9fffba299d (patch) | |
tree | 90ddc23532e76bffc743138c30778ccaec300c9f /sim/m68hc11/interp.c | |
parent | ee64caae5b444e393fa595c621c8c6234ef19c55 (diff) | |
download | fsf-binutils-gdb-fb8d4e59af8a0faf6f38499760546f9fffba299d.zip fsf-binutils-gdb-fb8d4e59af8a0faf6f38499760546f9fffba299d.tar.gz fsf-binutils-gdb-fb8d4e59af8a0faf6f38499760546f9fffba299d.tar.bz2 |
sim: m68hc11: tweak printf-style funcs
GCC complains that we past non-string literals to a printf style func,
so put a %s in here to keep it quiet.
Diffstat (limited to 'sim/m68hc11/interp.c')
-rw-r--r-- | sim/m68hc11/interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c index 26f2d15..7dc8e25 100644 --- a/sim/m68hc11/interp.c +++ b/sim/m68hc11/interp.c @@ -100,7 +100,7 @@ sim_get_info (SIM_DESC sd, char *cmd) sim_io_eprintf (sd, "Valid devices: cpu timer sio eeprom\n"); return; } - hw_dev = sim_hw_parse (sd, dev_list[i].device); + hw_dev = sim_hw_parse (sd, "%s", dev_list[i].device); if (hw_dev == 0) { sim_io_eprintf (sd, "Device '%s' not found\n", dev_list[i].device); @@ -138,7 +138,7 @@ sim_board_reset (SIM_DESC sd) cpu_type = "/m68hc12"; } - hw_cpu = sim_hw_parse (sd, cpu_type); + hw_cpu = sim_hw_parse (sd, "%s", cpu_type); if (hw_cpu == 0) { sim_io_eprintf (sd, "%s cpu not found in device tree.", cpu_type); |