]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
AHCI: remove DPRINTF macro
authorJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 19:01:27 +0000 (15:01 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 23:41:11 +0000 (19:41 -0400)
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170901001502.29915-10-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/ahci.c

index dfc05bee5df00cff3b1506b3630ace50c2f4854d..24c65dfab3d6497a98cfc3705c03abdffcff1434 100644 (file)
 #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);