apply SF patch #544 Use format specifiers in printf-based calls

This commit is contained in:
Stanislav Shwartsman 2019-12-09 15:18:47 +00:00
parent a257f03c8b
commit d7d80aa61c
2 changed files with 2 additions and 2 deletions

View File

@ -1545,7 +1545,7 @@ int bx_real_sim_c::bx_printf(const char *fmt, ...)
return bx_gui->bx_printf(buf);
}
}
return printf(buf);
return printf("%s", buf);
}
char* bx_real_sim_c::bx_gets(char *s, int size, FILE *stream)

View File

@ -1047,7 +1047,7 @@ void bx_usb_ehci_c::free_queue(EHCIQueue *q, const char *warn)
cancelled = BX_EHCI_THIS cancel_queue(q);
if (warn && cancelled > 0) {
BX_ERROR((warn));
BX_ERROR(("%s", warn));
}
QTAILQ_REMOVE(head, q, next);
free(q);