Commit 61ada15d5f282a1218f0c11103175e6dac4acf45

Authored by aliguori
1 parent c4cd07ef

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
Showing 1 changed file with 5 additions and 1 deletions
hw/vmport.c
... ... @@ -26,6 +26,8 @@
26 26 #include "pc.h"
27 27 #include "sysemu.h"
28 28  
  29 +//#define VMPORT_DEBUG
  30 +
29 31 #define VMPORT_CMD_GETVERSION 0x0a
30 32 #define VMPORT_CMD_GETRAMSIZE 0x14
31 33  
... ... @@ -65,7 +67,9 @@ static uint32_t vmport_ioport_read(void *opaque, uint32_t addr)
65 67 return eax;
66 68 if (!s->func[command])
67 69 {
68   - printf("vmport: unknown command %x\n", command);
  70 +#ifdef VMPORT_DEBUG
  71 + fprintf(stderr, "vmport: unknown command %x\n", command);
  72 +#endif
69 73 return eax;
70 74 }
71 75  
... ...