]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
ioemu-remote: Fix the pass-through compilation.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Tue, 15 Jul 2008 16:45:26 +0000 (17:45 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 15 Jul 2008 16:45:26 +0000 (17:45 +0100)
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
hw/pass-through.c
hw/pass-through.h

index bddc203f11fe349a89ae59384d220202b7bc25f7..1bd8d66d8e29ac0e3a88aa2dbd87030f702edc44 100644 (file)
@@ -713,7 +713,7 @@ int pt_init(PCIBus *e_bus, char *direct_pci)
     dpci_infos.pci_access = pci_access;
     dpci_infos.e_bus      = e_bus;
 
-    if ( strlen(direct_pci) == 0 ) {
+    if ( !direct_pci || strlen(direct_pci) == 0 ) {
         return 0;
     }
 
index ffd87ef9e546299e396f095185221ed96d2cec58..d642be376f3b85d023af3aef72dc947e018e37a9 100644 (file)
@@ -27,7 +27,7 @@
 #define PT_LOGGING_ENABLED
 
 #ifdef PT_LOGGING_ENABLED
-#define PT_LOG(_f, _a...)   fprintf(logfile, "%s: " _f, __func__, ##_a)
+#define PT_LOG(_f, _a...)   fprintf(stdout, "%s: " _f, __func__, ##_a)
 #else
 #define PT_LOG(_f, _a...)
 #endif