diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 52bbf871574979174859a19cd40e29828aa10fc3..1be942d1f47a9dd52f7dfb0d995af6cc5aec7e60 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -14231,7 +14231,7 @@ virDomainDefCheckABIStability(virDomainDefPtr src,
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Target domain redirected devices count %zu "
                          "does not match source %zu"),
-                       dst->nconsoles, src->nconsoles);
+                       dst->nredirdevs, src->nredirdevs);
         goto error;
     }