summaryrefslogtreecommitdiffstats
path: root/hw/scsi/spapr_vscsi.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-03-05 13:12:53 +0100
committerDavid Gibson2020-03-17 05:08:50 +0100
commita7017b203770fdc87e05a7f1b977ac30ce6adea6 (patch)
tree9dcd848d0895cb4d7081fc31cc2cadea528c14e2 /hw/scsi/spapr_vscsi.c
parenthw/scsi/spapr_vscsi: Prevent buffer overflow (diff)
downloadqemu-a7017b203770fdc87e05a7f1b977ac30ce6adea6.tar.gz
qemu-a7017b203770fdc87e05a7f1b977ac30ce6adea6.tar.xz
qemu-a7017b203770fdc87e05a7f1b977ac30ce6adea6.zip
hw/scsi/spapr_vscsi: Convert debug fprintf() to trace event
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200305121253.19078-8-philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/scsi/spapr_vscsi.c')
-rw-r--r--hw/scsi/spapr_vscsi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
index c4c4f31170..923488beb2 100644
--- a/hw/scsi/spapr_vscsi.c
+++ b/hw/scsi/spapr_vscsi.c
@@ -839,9 +839,7 @@ static int vscsi_process_tsk_mgmt(VSCSIState *s, vscsi_req *req)
uint64_t tag = iu->srp.rsp.tag;
uint8_t sol_not = iu->srp.cmd.sol_not;
- fprintf(stderr, "vscsi_process_tsk_mgmt %02x\n",
- iu->srp.tsk_mgmt.tsk_mgmt_func);
-
+ trace_spapr_vscsi_process_tsk_mgmt(iu->srp.tsk_mgmt.tsk_mgmt_func);
d = vscsi_device_find(&s->bus,
be64_to_cpu(req_iu(req)->srp.tsk_mgmt.lun), &lun);
if (!d) {