Received: from eggs.gnu.org ([2001:4830:134:3::10]:55668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3mV0-00029N-0M for qemu-devel@nongnu.org; Mon, 29 Jul 2013 08:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3mUu-0003O4-DC for qemu-devel@nongnu.org; Mon, 29 Jul 2013 08:24:25 -0400 From: Peter Maydell Date: Mon, 29 Jul 2013 13:16:35 +0100 Message-Id: <1375100199-13934-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/4] Rename all 'dprintf' macros to 'DPRINTF' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , patches@linaro.org, Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-ppc@nongnu.org, Stefan Hajnoczi , Paolo Bonzini , Richard Henderson 'dprintf' is the name of a POSIX standard function: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dprintf.html and so we should not steal the name to use as a debug macro. The clang compiler in particular will emit a warning about this redefinition: hw/net/spapr_llan.c:43:9: error: 'dprintf' macro redefined [-Werror] #define dprintf(fmt...) ^ /usr/include/x86_64-linux-gnu/bits/stdio2.h:189:12: note: previous definition is here # define dprintf(fd, ...) \ ^ 1 error generated. This patch series fixes this with the simple approach of renaming all the users of a 'dprintf' macro to 'DPRINTF' (which is what this macro is already called in a number of other files in the tree). It's almost entirely a simple search and replace; there are two cases where I folded an overlong line that checkpatch complained about. Peter Maydell (4): block/sheepdog: Rename 'dprintf' to 'DPRINTF' s390x: Rename 'dprintf' to 'DPRINTF' target-ppc/kvm.c: Rename 'dprintf' to 'DPRINTF' spapr: Rename 'dprintf' to 'DPRINTF' block/sheepdog.c | 30 ++++++++++++------------- hw/net/spapr_llan.c | 26 +++++++++++----------- hw/ppc/spapr_vio.c | 8 +++---- hw/s390x/s390-virtio-bus.c | 4 ++-- hw/s390x/s390-virtio.c | 4 ++-- hw/scsi/spapr_vscsi.c | 49 +++++++++++++++++++++-------------------- target-ppc/kvm.c | 52 ++++++++++++++++++++++---------------------- target-s390x/kvm.c | 19 ++++++++-------- 8 files changed, 97 insertions(+), 95 deletions(-) -- 1.7.9.5