summaryrefslogtreecommitdiffstats
path: root/hw/lsi53c895a.c
diff options
context:
space:
mode:
authorBernhard Kohl <bernhard.kohl@nsn.com>2010-09-01 16:33:21 +0200
committerKevin Wolf <kwolf@redhat.com>2010-09-08 12:39:13 +0200
commitaa2b1e8908271a2d7f31b73106cb83b8b4c49dfc (patch)
treef364f0b4a353269572201a7ebbf10478a35c70a6 /hw/lsi53c895a.c
parent333d50fe3d9a1ff0a6a1a44ef42a0d3a2a7f2abe (diff)
downloadhqemu-aa2b1e8908271a2d7f31b73106cb83b8b4c49dfc.zip
hqemu-aa2b1e8908271a2d7f31b73106cb83b8b4c49dfc.tar.gz
scsi: fix and improve debug prints
Some of them are not compile clean. Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r--hw/lsi53c895a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index bd7b661..5eaf69e 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -600,7 +600,7 @@ static void lsi_queue_command(LSIState *s)
{
lsi_request *p = s->current;
- DPRINTF("Queueing tag=0x%x\n", s->current_tag);
+ DPRINTF("Queueing tag=0x%x\n", p->tag);
assert(s->current != NULL);
assert(s->current->dma_len == 0);
QTAILQ_INSERT_TAIL(&s->queue, s->current, next);
@@ -880,7 +880,7 @@ static void lsi_do_msgout(LSIState *s)
break;
case 0x20: /* SIMPLE queue */
s->select_tag |= lsi_get_msgbyte(s) | LSI_TAG_VALID;
- DPRINTF("SIMPLE queue tag=0x%x\n", s->current_tag & 0xff);
+ DPRINTF("SIMPLE queue tag=0x%x\n", s->select_tag & 0xff);
break;
case 0x21: /* HEAD of queue */
BADF("HEAD queue not implemented\n");
OpenPOWER on IntegriCloud