Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVWdh-0001Hc-BU for qemu-devel@nongnu.org; Tue, 19 Aug 2008 15:13:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVWdg-0001H5-P6 for qemu-devel@nongnu.org; Tue, 19 Aug 2008 15:13:08 -0400 Received: from [199.232.76.173] (port=46950 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVWdg-0001Gz-FH for qemu-devel@nongnu.org; Tue, 19 Aug 2008 15:13:08 -0400 Received: from savannah.gnu.org ([199.232.41.3]:59280 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVWdg-0007gI-9W for qemu-devel@nongnu.org; Tue, 19 Aug 2008 15:13:08 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KVWdf-0004UV-Lf for qemu-devel@nongnu.org; Tue, 19 Aug 2008 19:13:07 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KVWdf-0004UR-CZ for qemu-devel@nongnu.org; Tue, 19 Aug 2008 19:13:07 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 19 Aug 2008 19:13:07 +0000 Subject: [Qemu-devel] [5030] Silence vmport unless DEBUG is enabled. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5030 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5030 Author: aliguori Date: 2008-08-19 19:13:06 +0000 (Tue, 19 Aug 2008) Log Message: ----------- Silence vmport unless DEBUG is enabled. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/vmport.c Modified: trunk/hw/vmport.c =================================================================== --- trunk/hw/vmport.c 2008-08-19 19:10:38 UTC (rev 5029) +++ trunk/hw/vmport.c 2008-08-19 19:13:06 UTC (rev 5030) @@ -26,6 +26,8 @@ #include "pc.h" #include "sysemu.h" +//#define VMPORT_DEBUG + #define VMPORT_CMD_GETVERSION 0x0a #define VMPORT_CMD_GETRAMSIZE 0x14 @@ -65,7 +67,9 @@ return eax; if (!s->func[command]) { - printf("vmport: unknown command %x\n", command); +#ifdef VMPORT_DEBUG + fprintf(stderr, "vmport: unknown command %x\n", command); +#endif return eax; }