summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorIlya Maximets2022-03-18 15:04:40 +0100
committerMichael S. Tsirkin2022-05-16 10:38:40 +0200
commit1eed051c8c8cd84e69f619b0adc22df543ed7f06 (patch)
treec5a6520ff5345ca802f754952661f1d002cc579f /hw/net
parentintel-iommu: update iq_dw during post load (diff)
downloadqemu-1eed051c8c8cd84e69f619b0adc22df543ed7f06.tar.gz
qemu-1eed051c8c8cd84e69f619b0adc22df543ed7f06.tar.xz
qemu-1eed051c8c8cd84e69f619b0adc22df543ed7f06.zip
vhost_net: Print feature masks in hex
"0x200000000" is much more readable than "8589934592". The change saves one step (conversion) while debugging. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Message-Id: <20220318140440.596019-1-i.maximets@ovn.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/net')
-rw-r--r--hw/net/vhost_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 30379d2ca4..df0f050548 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -201,7 +201,7 @@ struct vhost_net *vhost_net_init(VhostNetOptions *options)
net->dev.features &= ~(1ULL << VIRTIO_NET_F_MRG_RXBUF);
}
if (~net->dev.features & net->dev.backend_features) {
- fprintf(stderr, "vhost lacks feature mask %" PRIu64
+ fprintf(stderr, "vhost lacks feature mask 0x%" PRIx64
" for backend\n",
(uint64_t)(~net->dev.features & net->dev.backend_features));
goto fail;
@@ -213,7 +213,7 @@ struct vhost_net *vhost_net_init(VhostNetOptions *options)
if (net->nc->info->type == NET_CLIENT_DRIVER_VHOST_USER) {
features = vhost_user_get_acked_features(net->nc);
if (~net->dev.features & features) {
- fprintf(stderr, "vhost lacks feature mask %" PRIu64
+ fprintf(stderr, "vhost lacks feature mask 0x%" PRIx64
" for backend\n",
(uint64_t)(~net->dev.features & features));
goto fail;