From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3duY-0004I7-9C for qemu-devel@nongnu.org; Mon, 11 May 2009 18:23:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3duT-0004Hd-PH for qemu-devel@nongnu.org; Mon, 11 May 2009 18:23:49 -0400 Received: from [199.232.76.173] (port=44621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3duT-0004Ha-Iz for qemu-devel@nongnu.org; Mon, 11 May 2009 18:23:45 -0400 Received: from mail-fx0-f171.google.com ([209.85.220.171]:47090) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3duT-00037z-9S for qemu-devel@nongnu.org; Mon, 11 May 2009 18:23:45 -0400 Received: by fxm19 with SMTP id 19so2768364fxm.34 for ; Mon, 11 May 2009 15:23:43 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 11 May 2009 18:23:43 -0400 Message-ID: <77e29ea90905111523m3c9e0822h5ea25a3116f655fa@mail.gmail.com> From: Jiang Wang Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Questions about rtl8139 receive mode and debugging List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi: I am using rtl8139 nic emulation on x86 linux (CentOS 5.3). QEMU is 0.10.2 I want to set the NIC to receive the packet even if the check sum is wrong. Is this function implemented? I searched in hw/rtl8139.c and find a definition of " AcceptErr = 0x20,". But it is not used anywhere. So I guess it may not be implemented yet. Then I try to debug this NIC and understand its internals. But I cannot find the "printf" output even if I put "#define DEBUG_RTL8139 1" in the source file and recompiled the qemu. I noticed that in this post: http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00517.html , the printf seems to be able to output the message to the QEMU monitor. But why I cannot see the printf? Is there any other settings? Thanks. Regards, Jiang