nuttx/openamp/0008-openamp-add-available_idx-to-dump.patch

35 lines
1.2 KiB
Diff
Raw Normal View History

From 3ae038f84432e657dff78ed135204210b42a33a9 Mon Sep 17 00:00:00 2001
From: Guiding Li <liguiding1@xiaomi.com>
Date: Tue, 31 May 2022 23:04:01 +0800
Subject: [PATCH 08/12] openamp: add available_idx to dump
Just update debug logs
Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
---
lib/virtio/virtqueue.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/virtio/virtqueue.c open-amp/lib/virtio/virtqueue.c
index d989533..2d243b8 100644
--- a/lib/virtio/virtqueue.c
+++ open-amp/lib/virtio/virtqueue.c
@@ -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);
--
2.25.1