[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT b40354d] fix net.c compile warning
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT b40354d] fix net.c compile warning |
Date: |
Mon, 27 Apr 2009 21:12:26 -0000 |
From: Robert Reif <address@hidden>
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 <address@hidden>
diff --git a/net.c b/net.c
index db2f8d3..7ae1e6d 100644
--- 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT b40354d] fix net.c compile warning,
Anthony Liguori <=