summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/virtio/device.c')
-rw-r--r--src/vnet/devices/virtio/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/device.c b/src/vnet/devices/virtio/device.c
index 275a3c74990..d4ef6d836c5 100644
--- a/src/vnet/devices/virtio/device.c
+++ b/src/vnet/devices/virtio/device.c
@@ -55,7 +55,7 @@ format_virtio_device_name (u8 * s, va_list * args)
if (vif->type == VIRTIO_IF_TYPE_TAP)
{
- s = format (s, "tap-%s", vif->name);
+ s = format (s, "tap%u", vif->id);
}
else
s = format (s, "virtio%lu", vif->dev_instance);