apply SF patch #544 Use format specifiers in printf-based calls
This commit is contained in:
parent
a257f03c8b
commit
d7d80aa61c
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user