From mboxrd@z Thu Jan 1 00:00:00 1970 From: ehrhardt@linux.vnet.ibm.com Date: Thu, 13 Mar 2008 13:24:40 +0000 Subject: [kvm-ppc-devel] [PATCH] silence some pci/uic debugging in kvmppc Message-Id: <12054146801128-git-send-email-ehrhardt@linux.vnet.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org Subject: [PATCH] silence some pci/uic debugging in kvmppc userspace From: Christian Ehrhardt This is deactivating some debug message that would flood the console when using working things with sigificant load e.g. virtio for nfs root. While this patch is deactivating it the solution might also be to a) split that debug prints of the original 4xx_pci.diff patch, guard that prinf's with a DEBUG_PCI define and additionally set the default to be off. Short: the default should be non verbose - Hollis this is your code what do you prefer? Signed-off-by: Christian Ehrhardt --- [diffstat] ppc4xx_devs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qemu/hw/ppc4xx_devs.c b/qemu/hw/ppc4xx_devs.c --- a/qemu/hw/ppc4xx_devs.c +++ b/qemu/hw/ppc4xx_devs.c @@ -33,7 +33,7 @@ extern FILE *logfile; //#define DEBUG_MMIO //#define DEBUG_UNASSIGNED -#define DEBUG_UIC +//#define DEBUG_UIC /*****************************************************************************/ /* Generic PowerPC 4xx processor instanciation */ @@ -814,8 +814,8 @@ static int bamboo_pci_map_irq(PCIDevice int slot = pci_dev->devfn >> 3; /* All pins from each slot are tied to a single board IRQ (2-5) */ - printf("### %s: devfn %x irq %d -> %d\n", __func__, - pci_dev->devfn, irq_num, slot+1); + /* printf("### %s: devfn %x irq %d -> %d\n", __func__, + pci_dev->devfn, irq_num, slot+1); */ /* XXX re-examine */ return slot + 1; @@ -823,7 +823,7 @@ static int bamboo_pci_map_irq(PCIDevice static void bamboo_pci_set_irq(qemu_irq *pic, int irq_num, int level) { - printf("### %s: PCI irq %d, UIC irq %d\n", __func__, irq_num, 30 - irq_num); + /* printf("### %s: PCI irq %d, UIC irq %d\n", __func__, irq_num, 30 - irq_num); */ /* XXX re-examine */ qemu_set_irq(pic[30-irq_num], level); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel