Skip to content

Commit

Permalink
vhost: restore device information in log messages
Browse files Browse the repository at this point in the history
device information in the log messages was dropped.

Fixes: 52ade97 ("vhost: fix physical address mapping")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
  • Loading branch information
david-marchand authored and mcoquelin committed Jul 1, 2022
1 parent 1ef468a commit bb15129
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/vhost/vhost_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ async_dma_map(struct virtio_net *dev, bool do_map)
return;

/* DMA mapping errors won't stop VHOST_USER_SET_MEM_TABLE. */
VHOST_LOG_CONFIG(ERR, "DMA engine map failed\n");
VHOST_LOG_CONFIG(ERR, "(%s) DMA engine map failed\n",
dev->ifname);
}
}

Expand All @@ -160,7 +161,8 @@ async_dma_map(struct virtio_net *dev, bool do_map)
if (rte_errno == EINVAL)
return;

VHOST_LOG_CONFIG(ERR, "DMA engine unmap failed\n");
VHOST_LOG_CONFIG(ERR, "(%s) DMA engine unmap failed\n",
dev->ifname);
}
}
}
Expand Down Expand Up @@ -945,7 +947,8 @@ add_one_guest_page(struct virtio_net *dev, uint64_t guest_phys_addr,
dev->max_guest_pages * sizeof(*page),
RTE_CACHE_LINE_SIZE);
if (dev->guest_pages == NULL) {
VHOST_LOG_CONFIG(ERR, "cannot realloc guest_pages\n");
VHOST_LOG_CONFIG(ERR, "(%s) cannot realloc guest_pages\n",
dev->ifname);
rte_free(old_pages);
return -1;
}
Expand Down

0 comments on commit bb15129

Please sign in to comment.