The @virtPortOp variable inside of virNetDevVPortProfileOp8021Qbh
is of type virNetDevVPortProfileLinkOp. Pass the proper type to
virReportEnumRangeError().
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/util/virnetdevvportprofile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprofile.c
index 6d5bfbe870..c755fa79ec 100644
--- a/src/util/virnetdevvportprofile.c
+++ b/src/util/virnetdevvportprofile.c
@@ -1182,7 +1182,7 @@ virNetDevVPortProfileOp8021Qbh(const char *ifname,
rc = -1;
break;
default:
- virReportEnumRangeError(virNetDevVPortProfileType, virtPortOp);
+ virReportEnumRangeError(virNetDevVPortProfileLinkOp, virtPortOp);
rc = -1;
break;
}
--
2.41.0