Received: from eggs.gnu.org ([2001:4830:134:3::10]:41437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsQZr-0007h3-9c for qemu-devel@nongnu.org; Thu, 05 Jun 2014 01:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsQZl-0007MK-2B for qemu-devel@nongnu.org; Thu, 05 Jun 2014 01:51:03 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:56751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsQZk-0007Lj-Tp for qemu-devel@nongnu.org; Thu, 05 Jun 2014 01:50:57 -0400 Received: by mail-pd0-f181.google.com with SMTP id z10so579700pdj.26 for ; Wed, 04 Jun 2014 22:50:55 -0700 (PDT) From: Paul Janzen Date: Wed, 4 Jun 2014 22:33:40 -0700 Message-ID: <86r433vr9a.fsf@lautaret.pauljanzen.org> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] scsi-disk.c: Fix compilation with -DDEBUG_SCSI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini In scsi-disk.c, if you #define DEBUG_SCSI=1, you get: hw/scsi/scsi-disk.c: In function 'scsi_disk_emulate_command': hw/scsi/scsi-disk.c:2018: error: 'SCSIRequest' has no member named 'buf' Change the debugging statement to match the actual value tested. Signed-off-by: Paul Janzen --- hw/scsi/scsi-disk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index 48a28ae..5ff4ae4 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -2015,7 +2015,7 @@ static int32_t scsi_disk_emulate_command(SCSIRequest *req, uint8_t *buf) case VERIFY_10: case VERIFY_12: case VERIFY_16: - DPRINTF("Verify (bytchk %lu)\n", (r->req.buf[1] >> 1) & 3); + DPRINTF("Verify (bytchk %d)\n", (req->cmd.buf[1] >> 1) & 3); if (req->cmd.buf[1] & 6) { goto illegal_request; } -- 1.7.1