AHCI: pretty-print FIS to buffer instead of stderr
commit797285c8db3b9216186004beaad4aac4b70a43c0
authorJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 19:01:26 +0000 (18 15:01 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 23:41:11 +0000 (18 19:41 -0400)
tree87ce98d8c002f3880e0aeba4426957cc5e8610ca
parent5fa0feecaa5c1e05b6bed0e9684b78ae15f0e755
AHCI: pretty-print FIS to buffer instead of stderr

The current FIS printing routines dump the FIS to screen. adjust this
such that it dumps to buffer instead, then use this ability to have
FIS dump mechanisms via trace-events instead of compiled defines.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170901001502.29915-9-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/ahci.c
hw/ide/trace-events