]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Revert "ioemu-remote: Fix the pass-through compilation."
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 18 Jul 2008 14:32:36 +0000 (15:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Jul 2008 14:32:36 +0000 (15:32 +0100)
This reverts commit b7eec990223bb8c4b145597af37592103c412542.

Jean Guyader has provided a more comprehensive fix for the direct_pci
change later and the PT_LOG change to use stdout

hw/pass-through.c
hw/pass-through.h

index 054058660f64de3ef157033bf031542d33432d92..21576a47776a19cb514058636f7576296837de5f 100644 (file)
@@ -711,7 +711,7 @@ int pt_init(PCIBus *e_bus, char *direct_pci)
     dpci_infos.pci_access = pci_access;
     dpci_infos.e_bus      = e_bus;
 
-    if ( !direct_pci || strlen(direct_pci) == 0 ) {
+    if ( strlen(direct_pci) == 0 ) {
         return 0;
     }
 
index cce0cce4c9ccea31bc217cb315328af38024b43b..183ae09944ce2621bf95e9d321deb1e8f9d20d03 100644 (file)
@@ -28,7 +28,7 @@
 #define PT_LOGGING_ENABLED
 
 #ifdef PT_LOGGING_ENABLED
-#define PT_LOG(_f, _a...)   fprintf(stdout, "%s: " _f, __func__, ##_a)
+#define PT_LOG(_f, _a...)   fprintf(logfile, "%s: " _f, __func__, ##_a)
 #else
 #define PT_LOG(_f, _a...)
 #endif