qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/2] net: fix trace when debug is activated in slirp


From: Vincent Palatin
Subject: [Qemu-devel] [PATCH 1/2] net: fix trace when debug is activated in slirp
Date: Wed, 2 Mar 2011 17:25:01 -0500

make the code compile correctly when DEBUG is activated.

Signed-off-by: Vincent Palatin <address@hidden>
---
 slirp/bootp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/slirp/bootp.c b/slirp/bootp.c
index 0905c6d..1eb2ed1 100644
--- a/slirp/bootp.c
+++ b/slirp/bootp.c
@@ -284,7 +284,7 @@ static void bootp_reply(Slirp *slirp, const struct bootp_t 
*bp)
     } else {
         static const char nak_msg[] = "requested address not available";
 
-        DPRINTF("nak'ed addr=%08x\n", ntohl(preq_addr->s_addr));
+        DPRINTF("nak'ed addr=%08x\n", ntohl(preq_addr.s_addr));
 
         *q++ = RFC2132_MSG_TYPE;
         *q++ = 1;
-- 
1.7.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]