Skip to content

Commit

Permalink
openamp: add available_idx to dump
Browse files Browse the repository at this point in the history
Just update debug logs

Signed-off-by: Guiding Li <[email protected]>
  • Loading branch information
GUIDINGLI authored and arnopo committed Aug 17, 2022
1 parent 8590171 commit 1460543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/virtio/virtqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,11 @@ void virtqueue_dump(struct virtqueue *vq)
VRING_INVALIDATE(vq->vq_ring.used);

metal_log(METAL_LOG_DEBUG,
"VQ: %s - size=%d; free=%d; queued=%d; "
"desc_head_idx=%d; avail.idx=%d; used_cons_idx=%d; "
"VQ: %s - size=%d; free=%d; queued=%d; desc_head_idx=%d; "
"available_idx=%d; avail.idx=%d; used_cons_idx=%d; "
"used.idx=%d; avail.flags=0x%x; used.flags=0x%x\r\n",
vq->vq_name, vq->vq_nentries, vq->vq_free_cnt,
vq->vq_queued_cnt, vq->vq_desc_head_idx,
vq->vq_queued_cnt, vq->vq_desc_head_idx, vq->vq_available_idx,
vq->vq_ring.avail->idx, vq->vq_used_cons_idx,
vq->vq_ring.used->idx, vq->vq_ring.avail->flags,
vq->vq_ring.used->flags);
Expand Down

0 comments on commit 1460543

Please sign in to comment.