qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] debug: made printf always compile in debug outp


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] debug: made printf always compile in debug output
Date: Mon, 27 Mar 2017 12:46:23 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 03/27/2017 06:50 AM, Danil Antonov wrote:
>>From cddb60744808eedbadebdc4f0258ee6db694c4a3 Mon Sep 17 00:00:00 2001
> From: Danil Antonov <address@hidden>
> Date: Mon, 27 Mar 2017 14:43:10 +0300
> Subject: [PATCH] debug: made printf always compile in debug output
> 
> Wrapped printf calls inside debug macros (DPRINTF) in `if` statement.
> This will ensure that printf function will always compile even if debug
> output is turned off and, in turn, will prevent bitrot of the format
> strings. Also updated some debug messages to remove compiler errors and
> warnings.
> 
> Signed-off-by: Danil Antonov <address@hidden>
> ---
>  A patch for "Bitrot prevention" in BiteSizedTasks.

Thanks for tackling this.  However...

>  hw/acpi/pcihp.c               | 15 ++++++----
>  hw/acpi/piix4.c               | 16 ++++++-----
>  hw/arm/strongarm.c            | 17 +++++++----
>  hw/arm/z2.c                   | 16 +++++++----
>  hw/audio/lm4549.c             | 18 +++++++-----
>  hw/block/pflash_cfi01.c       | 18 ++++++------
>  hw/block/pflash_cfi02.c       | 19 ++++++------
>  hw/char/ipoctal232.c          | 24 +++++++++-------
>  hw/char/serial.c              | 16 ++++++-----
>  hw/core/empty_slot.c          | 15 ++++++----
>  hw/display/sm501.c            | 15 ++++++----
>  hw/display/ssd0303.c          | 26 ++++++++++-------
>  hw/display/ssd0323.c          | 28 +++++++++---------
>  hw/dma/i82374.c               | 18 +++++++-----
>  hw/dma/puv3_dma.c             |  8 +++---
>  hw/gpio/pl061.c               | 28 ++++++++++--------
>  hw/gpio/puv3_gpio.c           |  8 +++---
>  hw/i2c/bitbang_i2c.c          | 16 +++++++----
>  hw/i2c/pm_smbus.c             | 15 ++++++----
>  hw/i2c/smbus.c                | 28 +++++++++++-------
>  hw/i386/acpi-build.c          | 17 +++++++----
>  hw/i386/intel_iommu.c         | 18 ++++++------
>  hw/i386/pc.c                  | 16 +++++++----
>  hw/i386/xen/xen_platform.c    | 17 ++++++-----
>  hw/input/adb.c                | 17 ++++++-----
>  hw/input/pckbd.c              | 17 +++++++----
>  hw/input/vmmouse.c            | 15 ++++++----
>  hw/intc/arm_gicv3_kvm.c       | 16 ++++++-----
>  hw/intc/exynos4210_combiner.c | 18 ++++++------
>  hw/intc/heathrow_pic.c        | 17 ++++++-----
>  hw/intc/i8259.c               | 16 ++++++-----
>  hw/intc/ioapic.c              | 16 ++++++-----
>  hw/intc/puv3_intc.c           |  4 +--
>  hw/ipack/tpci200.c            | 16 +++++++----
>  hw/isa/apm.c                  | 14 +++++----
>  hw/isa/vt82c686.c             | 18 ++++++------
>  hw/mips/gt64xxx_pci.c         | 15 ++++++----
>  hw/misc/macio/cuda.c          | 15 ++++++----
>  hw/misc/puv3_pm.c             |  8 +++---
>  hw/net/dp8393x.c              | 15 ++++++----
>  hw/net/lan9118.c              | 20 +++++++++----
>  hw/net/mcf_fec.c              | 18 +++++++-----
>  hw/net/stellaris_enet.c       | 28 +++++++++++-------
>  hw/nvram/mac_nvram.c          | 16 +++++++----
>  hw/pci-bridge/dec.c           | 18 ++++++------
>  hw/pci-host/apb.c             | 16 +++++++----
>  hw/pci-host/bonito.c          | 19 +++++++-----
>  hw/pci-host/grackle.c         | 16 +++++++----
>  hw/pci-host/uninorth.c        | 16 +++++++----
>  hw/pci/msi.c                  | 17 +++++++----
>  hw/pci/pci.c                  | 16 +++++++----
>  hw/pci/pci_host.c             | 16 +++++++----
>  hw/pci/pcie.c                 | 18 ++++++++----
>  hw/pci/pcie_aer.c             | 18 ++++++++----
>  hw/s390x/s390-pci-bus.c       | 18 +++++++-----
>  hw/s390x/s390-pci-inst.c      | 18 +++++++-----
>  hw/scsi/lsi53c895a.c          | 26 ++++++++++-------
>  hw/scsi/scsi-disk.c           | 17 ++++++-----
>  hw/scsi/scsi-generic.c        | 17 +++++------
>  hw/sd/pl181.c                 | 16 +++++++----
>  hw/sd/sd.c                    | 14 +++++----
>  hw/sd/ssi-sd.c                | 27 ++++++++++-------
>  hw/sparc64/sparc64.c          | 36 ++++++++++++-----------
>  hw/sparc64/sun4u.c            | 16 ++++++-----
>  hw/ssi/pl022.c                | 28 ++++++++++--------
>  hw/timer/exynos4210_mct.c     | 43 +++++++++++++--------------
>  hw/timer/exynos4210_pwm.c     | 18 ++++++------
>  hw/timer/exynos4210_rtc.c     | 12 ++++----
>  hw/timer/hpet.c               | 24 +++++++++-------
>  hw/timer/mc146818rtc.c        | 33 ++++++++++++---------
>  hw/timer/pl031.c              | 17 +++++------
>  hw/timer/puv3_ost.c           |  4 +--
>  hw/timer/sun4v-rtc.c          | 18 ++++++------
>  hw/usb/dev-serial.c           | 17 +++++------
>  hw/usb/dev-storage.c          | 17 +++++------
>  hw/usb/hcd-ehci.h             | 10 +++----
>  hw/usb/hcd-xhci.c             | 19 +++++++-----
>  hw/virtio/virtio-bus.c        | 15 ++++++----
>  hw/virtio/virtio-mmio.c       | 17 ++++++-----
>  include/hw/unicore32/puv3.h   | 15 ++++++----
>  include/hw/vfio/vfio-common.h | 17 +++++------
>  kvm-all.c                     | 16 +++++------
>  migration/block.c             | 16 ++++++-----
>  page_cache.c                  | 17 ++++++-----
>  target/i386/kvm.c             | 18 ++++++------
>  target/ppc/kvm.c              | 18 ++++++------
>  target/s390x/kvm.c            | 18 ++++++------
>  target/sparc/ldst_helper.c    | 67
> +++++++++++++++++++++++++------------------
>  target/unicore32/helper.c     | 16 ++++++-----
>  target/unicore32/softmmu.c    | 14 +++++----
>  xen-common.c                  | 18 ++++++------
>  xen-hvm.c                     | 18 ++++++------
>  xen-mapcache.c                | 18 ++++++------
>  93 files changed, 992 insertions(+), 712 deletions(-)

This is a very large patch to review, and touches a LOT of files owned
by a large number of maintainers.  Best would be to split it into a
series of smaller patches, touching one directory or set of related
files per patch (where each patch is owned by a single maintainer), to
make it easier for various maintainers to review (and maybe even pull)
just the patches that affect their responsibilities.

Also, splitting it into multiple patches will make it easier to spot the
places where you fixed format mismatches found by the conversions.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]