]> git.proxmox.com Git - qemu.git/commitdiff
net: fix trace when debug is activated in slirp
authorVincent Palatin <vpalatin@chromium.org>
Wed, 2 Mar 2011 22:25:01 +0000 (17:25 -0500)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 5 Mar 2011 12:00:51 +0000 (12:00 +0000)
make the code compile correctly when DEBUG is activated.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/bootp.c

index 0905c6d1bee4e3f67edb16ff43bd707e30d632e4..1eb2ed11434df1d61d4a5f0ba447762a070194ab 100644 (file)
@@ -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;