提交 61ada15d 编写于 作者: A aliguori

Silence vmport unless DEBUG is enabled.

Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5030 c046a42c-6fe2-441c-8c8c-71466251a162
上级 c4cd07ef
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册