qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5030] Silence vmport unless DEBUG is enabled.
@ 2008-08-19 19:13 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-08-19 19:13 UTC (permalink / raw)
  To: qemu-devel

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 <aliguori@us.ibm.com>

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;
     }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-19 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 19:13 [Qemu-devel] [5030] Silence vmport unless DEBUG is enabled Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).