driver: test: Fix the mingw build caused by wrong printf format specifier

Caused by commit 326c3f54.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Erik Skultety 2019-05-24 12:49:50 +02:00
parent 7389b08488
commit ab48fe7991

View File

@ -3268,7 +3268,7 @@ testDomainInterfaceAddresses(virDomainPtr dom,
iface->addrs[0].type = VIR_IP_ADDR_TYPE_IPV4;
iface->addrs[0].prefix = 24;
if (virAsprintf(&iface->addrs[0].addr, "192.168.0.%ld", 1 + i) < 0)
if (virAsprintf(&iface->addrs[0].addr, "192.168.0.%zu", 1 + i) < 0)
goto cleanup;
iface->naddrs = 1;