trace: Fix incorrect megasas trace parameters
commitd17e744848cac9a96c827be1f244ef9266710d8f
authorEric Blake <eblake@redhat.com>
Mon, 13 Mar 2017 19:55:19 +0000 (13 14:55 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 24 Mar 2017 09:21:42 +0000 (24 09:21 +0000)
tree611eb880b5b63a8d5211ab540f6cc8ac7d2d746d
parent67adf4b39806df42b4c96377b37004de0df3a1fd
trace: Fix incorrect megasas trace parameters

hw/scsi/trace-events lists cmd as the first parameter for both
megasas_iovec_overflow and megasas_iovec_underflow, but the caller
was mistakenly passing cmd->iov_size twice instead of the command
index.  Also, trace_megasas_abort_invalid is called with parameters
in the wrong order.  Broken since its introduction in commit
e8f943c3.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/scsi/megasas.c