]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/m68hc11/interp.c
sim: m68hc11: tweak printf-style funcs
[thirdparty/binutils-gdb.git] / sim / m68hc11 / interp.c
index 26f2d1527beb23492a10163a963e9ad4e6b4d7c5..7dc8e25c0462f465d69e2a82c8707fe57aab0b7e 100644 (file)
@@ -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);