summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Snow2017-09-18 21:01:27 +0200
committerJohn Snow2017-09-19 01:41:11 +0200
commitac8d9f2e4ca290ecc87abb3b09fb10c21c41d281 (patch)
tree17c21df8bf8d4a3a7caa45ecf7186e671f60392c
parentAHCI: pretty-print FIS to buffer instead of stderr (diff)
downloadqemu-ac8d9f2e4ca290ecc87abb3b09fb10c21c41d281.tar.gz
qemu-ac8d9f2e4ca290ecc87abb3b09fb10c21c41d281.tar.xz
qemu-ac8d9f2e4ca290ecc87abb3b09fb10c21c41d281.zip
AHCI: remove DPRINTF macro
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>
-rw-r--r--hw/ide/ahci.c9
1 files changed, 0 insertions, 9 deletions
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);