qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PATCH] fix net.c compile warning
@ 2009-04-27 11:01 Robert Reif
  2009-04-27 17:13 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Reif @ 2009-04-27 11:01 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

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>

[-- Attachment #2: net.diff.txt --]
[-- Type: text/plain, Size: 389 bytes --]

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] PATCH] fix net.c compile warning
  2009-04-27 11:01 [Qemu-devel] PATCH] fix net.c compile warning Robert Reif
@ 2009-04-27 17:13 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2009-04-27 17:13 UTC (permalink / raw)
  To: Robert Reif; +Cc: qemu-devel

On 4/27/09, Robert Reif <reif@earthlink.net> wrote:
> 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>

Thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-27 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27 11:01 [Qemu-devel] PATCH] fix net.c compile warning Robert Reif
2009-04-27 17:13 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).