Received: from eggs.gnu.org ([2001:4830:134:3::10]:37021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkREs-0002qO-Gv for qemu-devel@nongnu.org; Thu, 15 Sep 2016 03:37:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkREn-0000yM-Iw for qemu-devel@nongnu.org; Thu, 15 Sep 2016 03:37:41 -0400 References: <1473878907-10477-1-git-send-email-lvivier@redhat.com> <1473878907-10477-6-git-send-email-lvivier@redhat.com> <86153a33-3f6e-7837-d5f4-f0ef62717c36@redhat.com> From: Laurent Vivier Message-ID: <3f3b355a-987d-37d0-8e5f-73f0c3525aff@redhat.com> Date: Thu, 15 Sep 2016 09:37:32 +0200 MIME-Version: 1.0 In-Reply-To: <86153a33-3f6e-7837-d5f4-f0ef62717c36@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] spapr_vscsi: convert to trace framework instead of DPRINTF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , david@gibson.dropbear.id.au Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 14/09/2016 22:09, Eric Blake wrote: > On 09/14/2016 01:48 PM, Laurent Vivier wrote: >> Signed-off-by: Laurent Vivier >> --- >> hw/scsi/spapr_vscsi.c | 89 +++++++++++++++++++++------------------------------ >> hw/scsi/trace-events | 27 ++++++++++++++++ >> 2 files changed, 63 insertions(+), 53 deletions(-) >> > >> +++ b/hw/scsi/trace-events >> @@ -202,3 +202,30 @@ esp_pci_dma_abort(uint32_t val) "ABORT (%.8x)" >> esp_pci_dma_start(uint32_t val) "START (%.8x)" >> esp_pci_sbac_read(uint32_t reg) "sbac: 0x%8.8x" >> esp_pci_sbac_write(uint32_t reg, uint32_t val) "sbac: 0x%8.8x -> 0x%8.8x" >> + >> +# hw/scsi/spapr_vscsi.c >> + >> +spapr_vscsi_send_rsp(uint8_t status, int32_t res_in, int32_t res_out) "status: 0x%x, res_in: %"PRId32", res_out: %"PRId32 > > Same as before. > >> +spapr_vscsi_fetch_desc_no_data(void) "no data descriptor" >> +spapr_vscsi_fetch_desc_direct(void) "direct segment" >> +spapr_vscsi_fetch_desc_indirect(uint32_t qtag, unsigned desc, unsigned local_desc) "indirect segment local tag=0x%"PRIx32" desc#%u/%u" >> +spapr_vscsi_fetch_desc_out_of_range(unsigned desc, unsigned desc_offset) "#%u is ouf of range (%u bytes)" >> +spapr_vscsi_fetch_desc_dma_read_error(int rc) "spapr_vio_dma_read -> %d reading ext_desc" >> +spapr_vscsi_fetch_desc_indirect_seg_ext(uint32_t qtag, unsigned n, unsigned desc, uint64_t va, uint32_t len) "indirect segment ext. tag=0x%"PRIx32" desc#%u/%u { va=0x%"PRIx64" len=0x%"PRIx32" }" >> +spapr_vscsi_fetch_desc_out_of_desc(void) "Out of descriptors !" > > Probably worth dropping the ' !' while touching this (first, English > doesn't want space before !; second, ! usually means you are shouting at This is what happens when you let french people writing code... Thank you for the review, Eric. Laurent