aboutsummaryrefslogtreecommitdiff
path: root/hw/vmport.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-19 19:13:06 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-19 19:13:06 +0000
commit61ada15d5f282a1218f0c11103175e6dac4acf45 (patch)
treed5691aa73f687e6cf99a42f738bbaaaa722c825e /hw/vmport.c
parentc4cd07ef65fb62d3f943f35b2dd201ef1835d59d (diff)
downloadqemu-61ada15d5f282a1218f0c11103175e6dac4acf45.zip
qemu-61ada15d5f282a1218f0c11103175e6dac4acf45.tar.gz
qemu-61ada15d5f282a1218f0c11103175e6dac4acf45.tar.bz2
Silence vmport unless DEBUG is enabled.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5030 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vmport.c')
-rw-r--r--hw/vmport.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/vmport.c b/hw/vmport.c
index ebfa921..884af3f 100644
--- a/hw/vmport.c
+++ b/hw/vmport.c
@@ -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 @@ static uint32_t vmport_ioport_read(void *opaque, uint32_t addr)
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;
}