From: John Snow Date: Mon, 18 Sep 2017 19:01:27 +0000 (-0400) Subject: AHCI: remove DPRINTF macro X-Git-Tag: qemu-xen-4.11.0-rc1~166^2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ac8d9f2e4ca290ecc87abb3b09fb10c21c41d281;p=qemu-xen.git AHCI: remove DPRINTF macro Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Message-id: 20170901001502.29915-10-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index dfc05bee5d..24c65dfab3 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -34,17 +34,8 @@ #include "hw/ide/pci.h" #include "hw/ide/ahci_internal.h" -#define DEBUG_AHCI 0 #include "trace.h" -#define DPRINTF(port, fmt, ...) \ -do { \ - if (DEBUG_AHCI) { \ - fprintf(stderr, "ahci: %s: [%d] ", __func__, port); \ - fprintf(stderr, fmt, ## __VA_ARGS__); \ - } \ -} while (0) - static void check_cmd(AHCIState *s, int port); static int handle_cmd(AHCIState *s, int port, uint8_t slot); static void ahci_reset_port(AHCIState *s, int port);