From patchwork Wed Mar 2 22:25:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 85185 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D824C1007DF for ; Thu, 3 Mar 2011 09:28:01 +1100 (EST) Received: from localhost ([127.0.0.1]:39816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuuV2-0006YK-Nh for incoming@patchwork.ozlabs.org; Wed, 02 Mar 2011 17:26:28 -0500 Received: from [140.186.70.92] (port=39463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuuTs-0006V1-Lp for qemu-devel@nongnu.org; Wed, 02 Mar 2011 17:25:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuuTq-0003Qo-T5 for qemu-devel@nongnu.org; Wed, 02 Mar 2011 17:25:16 -0500 Received: from smtp-out.google.com ([74.125.121.67]:44255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuuTq-0003Pf-Kg for qemu-devel@nongnu.org; Wed, 02 Mar 2011 17:25:14 -0500 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id p22MPCFQ003488; Wed, 2 Mar 2011 14:25:13 -0800 Received: from vpa.cam.corp.google.com (vpa.cam.corp.google.com [172.31.194.117]) by wpaz9.hot.corp.google.com with ESMTP id p22MPBeL006306; Wed, 2 Mar 2011 14:25:11 -0800 Received: by vpa.cam.corp.google.com (Postfix, from userid 125455) id 56AD91606A5; Wed, 2 Mar 2011 17:25:11 -0500 (EST) From: Vincent Palatin To: qemu-devel Date: Wed, 2 Mar 2011 17:25:01 -0500 Message-Id: <1299104702-18928-2-git-send-email-vpalatin@chromium.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1299104702-18928-1-git-send-email-vpalatin@chromium.org> References: <1299104702-18928-1-git-send-email-vpalatin@chromium.org> X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 74.125.121.67 Cc: Vincent Palatin Subject: [Qemu-devel] [PATCH 1/2] net: fix trace when debug is activated in slirp X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org make the code compile correctly when DEBUG is activated. Signed-off-by: Vincent Palatin --- 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;