Skip to content

Commit 30b8dbb

Browse files
committed
Debug node addr
1 parent 2990e29 commit 30b8dbb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

virtio-snd.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ static void __virtio_snd_frame_dequeue(short *out,
741741
fprintf(stderr,
742742
"--- left %" PRIu32 " actual %" PRIu32 " len %" PRIu32
743743
" written %" PRIu32 " node->pos %" PRIu32 " node->len %" PRIu32
744-
"\n",
745-
left, actual, len, written_bytes, node->pos, node->len);
744+
" node->addr %p \n",
745+
left, actual, len, written_bytes, node->pos, node->len,
746+
node->addr);
746747

747748
memcpy(props->immediate + written_bytes, node->addr + node->pos, len);
748749

@@ -752,8 +753,10 @@ static void __virtio_snd_frame_dequeue(short *out,
752753

753754
written_bytes += len;
754755
node->pos += len;
755-
if (node->pos >= node->len)
756+
if (node->pos >= node->len) {
757+
fprintf(stderr, "-*- pop node->addr %p\n", node->addr);
756758
list_del(&node->q);
759+
}
757760
}
758761
fprintf(stderr, "*** written %" PRIu32 " out n %" PRIu32 "\n",
759762
written_bytes, n);

0 commit comments

Comments
 (0)