summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--auto-virtserial-guest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto-virtserial-guest.c b/auto-virtserial-guest.c
index 2b72b31..4fb22e6 100644
--- a/auto-virtserial-guest.c
+++ b/auto-virtserial-guest.c
@@ -145,10 +145,10 @@ static int safepoll(struct pollfd *fds, nfds_t nfds, int timeout)
static char *get_port_dev(unsigned int nr)
{
char *buf;
- buf = malloc(strlen("/dev/vport0p10") + 1);
+ buf = malloc(strlen("/dev/virtio-ports/test10") + 1);
if (!buf)
return NULL;
- sprintf(buf, "/dev/vport0p%u", nr);
+ sprintf(buf, "/dev/virtio-ports/test%u", nr);
return buf;
}