projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d877fa5
)
fix net.c compile warning
author
Robert Reif
<reif@earthlink.net>
Mon, 27 Apr 2009 17:11:36 +0000
(17:11 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Mon, 27 Apr 2009 17:11:36 +0000
(17:11 +0000)
Fix net.c compile warning:
CC net.o
net.c: In function
\91
net_slirp_redir
\92
:
net.c:623: warning: format not a string literal and no format arguments
Signed-off-by: Robert Reif <reif@earthlink.net>
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index
db2f8d3
..
7ae1e6d
100644
(file)
--- a/
net.c
+++ b/
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);