9b4927
From 0d49ef856846eac919725ad0278451e94c78d9ff Mon Sep 17 00:00:00 2001
9b4927
From: Cole Robinson <crobinso@redhat.com>
9b4927
Date: Mon, 1 Mar 2021 13:15:37 -0500
9b4927
Subject: [PATCH] hyperv: Fix 32bit compilation
9b4927
9b4927
Signed-off-by: Cole Robinson <crobinso@redhat.com>
9b4927
---
9b4927
 src/hyperv/hyperv_driver.c | 4 ++--
9b4927
 1 file changed, 2 insertions(+), 2 deletions(-)
9b4927
9b4927
diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c
9b4927
index 701456cdb3..e4f537bd12 100644
9b4927
--- a/src/hyperv/hyperv_driver.c
9b4927
+++ b/src/hyperv/hyperv_driver.c
9b4927
@@ -3004,7 +3004,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char *xml)
9b4927
     /* Attach serials */
9b4927
     for (i = 0; i < def->nserials; i++) {
9b4927
         if (hypervDomainAttachSerial(domain, def->serials[i]) < 0) {
9b4927
-            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %lu"), i);
9b4927
+            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %zu"), i);
9b4927
             goto error;
9b4927
         }
9b4927
     }
9b4927
@@ -3012,7 +3012,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char *xml)
9b4927
     /* Attach networks */
9b4927
     for (i = 0; i < def->nnets; i++) {
9b4927
         if (hypervDomainAttachSyntheticEthernetAdapter(domain, def->nets[i], hostname) < 0) {
9b4927
-            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %lu"), i);
9b4927
+            virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %zu"), i);
9b4927
             goto error;
9b4927
         }
9b4927
     }