mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
fix net.c compile warning
Fix net.c compile warning: CC net.o net.c: In function net_slirp_redir: net.c:623: warning: format not a string literal and no format arguments Signed-off-by: Robert Reif <reif@earthlink.net>
This commit is contained in:
parent
d877fa5a17
commit
8d316b0011
1 changed files with 1 additions and 1 deletions
2
net.c
2
net.c
|
@ -620,7 +620,7 @@ void net_slirp_redir(Monitor *mon, const char *redir_str)
|
|||
errmsg = "invalid redirection format\n";
|
||||
fail:
|
||||
if (mon) {
|
||||
monitor_printf(mon, errmsg);
|
||||
monitor_printf(mon, "%s", errmsg);
|
||||
} else {
|
||||
fprintf(stderr, "qemu: %s", errmsg);
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue