Received: from eggs.gnu.org ([2001:4830:134:3::10]:45323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKTUk-0008Oi-5L for qemu-devel@nongnu.org; Thu, 21 Aug 2014 10:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKTUd-0003PY-Gn for qemu-devel@nongnu.org; Thu, 21 Aug 2014 10:37:42 -0400 Received: from blu004-omc2s15.hotmail.com ([65.55.111.90]:65431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKTUd-0003OK-CS for qemu-devel@nongnu.org; Thu, 21 Aug 2014 10:37:35 -0400 Message-ID: From: Gonglei References: <1408623593-4640-1-git-send-email-arei.gonglei@huawei.com> <53F5F675.8010603@redhat.com> In-Reply-To: <53F5F675.8010603@redhat.com> Date: Thu, 21 Aug 2014 22:36:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Subject: Re: [Qemu-devel] [PATCH] scsi-generic: fix debug print compiling error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Paolo Bonzini' , arei.gonglei@huawei.com, qemu-devel@nongnu.org Cc: weidong.huang@huawei.com > Subject: Re: [Qemu-devel] [PATCH] scsi-generic: fix debug print = compiling error >=20 > Il 21/08/2014 14:19, arei.gonglei@huawei.com ha scritto: > > From: Gonglei > > > > variables lun and tag had been eliminated, broke compiling > > when enable debug switch. > > > > Signed-off-by: Gonglei > > --- > > hw/scsi/scsi-generic.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c > > index 0b2ff90..3808694 100644 > > --- a/hw/scsi/scsi-generic.c > > +++ b/hw/scsi/scsi-generic.c > > @@ -303,8 +303,7 @@ static int32_t scsi_send_command(SCSIRequest > *req, uint8_t *cmd) > > SCSIDevice *s =3D r->req.dev; > > int ret; > > > > - DPRINTF("Command: lun=3D%d tag=3D0x%x len %zd data=3D0x%02x", = lun, > tag, > > - r->req.cmd.xfer, cmd[0]); > > + DPRINTF("Command: len %zd data=3D0x%02x\n", r->req.cmd.xfer, > cmd[0]); >=20 > You can use r->req.tag (but traces provide the same information = really, > so I'd also accept a patch to remove superfluous DPRINTFs that keep > breaking). >=20 OK, thanks! v2 will do. Best regards, -Gonglei