From c9f2fb1b665ed7da28e66763bc730a636a4fa2eb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 18 Jul 2008 15:32:36 +0100 Subject: [PATCH] Revert "ioemu-remote: Fix the pass-through compilation." 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 | 2 +- hw/pass-through.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pass-through.c b/hw/pass-through.c index 05405866..21576a47 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -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; } diff --git a/hw/pass-through.h b/hw/pass-through.h index cce0cce4..183ae099 100644 --- a/hw/pass-through.h +++ b/hw/pass-through.h @@ -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 -- 2.39.5