diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-01-31 11:41:51 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-04 01:28:04 +0100 |
commit | e894d9ae8212c49dc44e52ad583954ed24e6905b (patch) | |
tree | 6539c8982b6c1b2769129a30a520fccfab72b1ea | |
parent | e25a93032f8c09f1e0bfbc32e81431dd995f9605 (diff) | |
download | passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar.gz passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar.bz2 passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar.lz passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar.xz passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.tar.zst passt-e894d9ae8212c49dc44e52ad583954ed24e6905b.zip |
vhost_user: Turn some vhost-user message reports to trace()
Having every vhost-user message printed as part of debug output makes
debugging anything else a bit complicated.
Change per-packet debug() messages in vu_kick_cb() and
vu_send_single() to trace()
[dgibson: switch different messages to trace()]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | vhost_user.c | 4 | ||||
-rw-r--r-- | vu_common.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vhost_user.c b/vhost_user.c index 58baee2..9e38cfd 100644 --- a/vhost_user.c +++ b/vhost_user.c @@ -640,8 +640,8 @@ static bool vu_set_vring_num_exec(struct vu_dev *vdev, unsigned int idx = msg->payload.state.index; unsigned int num = msg->payload.state.num; - debug("State.index: %u", idx); - debug("State.num: %u", num); + trace("State.index: %u", idx); + trace("State.num: %u", num); vdev->vq[idx].vring.num = num; return false; diff --git a/vu_common.c b/vu_common.c index 2c12dca..ab04d31 100644 --- a/vu_common.c +++ b/vu_common.c @@ -238,7 +238,7 @@ void vu_kick_cb(struct vu_dev *vdev, union epoll_ref ref, if (rc == -1) die_perror("vhost-user kick eventfd_read()"); - debug("vhost-user: got kick_data: %016"PRIx64" idx: %d", + trace("vhost-user: got kick_data: %016"PRIx64" idx: %d", kick_data, ref.queue); if (VHOST_USER_IS_QUEUE_TX(ref.queue)) vu_handle_tx(vdev, ref.queue, now); @@ -262,7 +262,7 @@ int vu_send_single(const struct ctx *c, const void *buf, size_t size) int elem_cnt; int i; - debug("vu_send_single size %zu", size); + trace("vu_send_single size %zu", size); if (!vu_queue_enabled(vq) || !vu_queue_started(vq)) { debug("Got packet, but RX virtqueue not usable yet"); @@ -294,7 +294,7 @@ int vu_send_single(const struct ctx *c, const void *buf, size_t size) vu_flush(vdev, vq, elem, elem_cnt); - debug("vhost-user sent %zu", total); + trace("vhost-user sent %zu", total); return total; err: |