1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

SCP: Add printf style format argument validation for all functions which take printf arguments.

These include: sim_printf(), sim_messagef(), Fprint() and sim_debug().

Fix current use of these functions which had invalid arguments.
This commit is contained in:
Mark Pizzolato
2015-10-09 04:12:25 -07:00
parent ed57f061e2
commit 73d7aee71f
13 changed files with 56 additions and 49 deletions

View File

@@ -1872,7 +1872,7 @@ else
memset(&voa, 0, sizeof(voa));
if (!strcmp(savname, "vde:vdedevice")) {
sim_printf ("Eth: Must specify actual vde device name (i.e. vde:/tmp/switch)\r\n", errbuf);
sim_printf ("Eth: Must specify actual vde device name (i.e. vde:/tmp/switch)\r\n");
return SCPE_OPENERR;
}
if (!(*handle = (void*) vde_open(savname+4, "simh", &voa)))