[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code |
Date: |
Mon, 2 Apr 2012 14:17:37 +1000 |
From: Alexey Kardashevskiy <address@hidden>
This adds DPRINTF() macros with the usual conventions to the spapr_pci
code.
Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Alexey Kardashevskiy <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/spapr_pci.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c
index b8a0313..61a53d5 100644
--- a/hw/spapr_pci.c
+++ b/hw/spapr_pci.c
@@ -32,6 +32,14 @@
#include "hw/pci_internals.h"
+/*#define DEBUG_SPAPR_PCI*/
+
+#ifdef DEBUG_SPAPR_PCI
+# define DPRINTF(format, ...) fprintf(stderr, "QEMU: " format, ## __VA_ARGS__)
+#else
+# define DPRINTF(format, ...) do { } while (0)
+#endif
+
static PCIDevice *find_dev(sPAPREnvironment *spapr,
uint64_t buid, uint32_t config_addr)
{
--
1.7.9.1
- [Qemu-ppc] [PATCH 1/3] pseries: Fix RTAS based config access, David Gibson, 2012/04/02
- [Qemu-ppc] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code,
David Gibson <=
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Blue Swirl, 2012/04/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Peter Maydell, 2012/04/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Blue Swirl, 2012/04/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Peter Maydell, 2012/04/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Andreas Färber, 2012/04/05
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Blue Swirl, 2012/04/11
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, David Gibson, 2012/04/10
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 3/3] pseries: Add DPRINTF macros to spapr pci code, Blue Swirl, 2012/04/11
[Qemu-ppc] [PATCH 2/3] pseries: Use more conventional PCI interrupt swizzling, David Gibson, 2012/04/02