mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Fix printf style used with virDomainIOMMUDef::aw_bits
The aw_bits member of the virDomainIOMMUDef is of type unsigned int. However, in a few places (virDomainIOMMUDefCheckABIStability(), virDomainIOMMUDefFormat(), qemuBuildIOMMUCommandLine()) incorrect printf modifier is used. Fix those places. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
1 parent
4009126f17
commit
27fd2e97b8
2 files changed
+3
-3
No files matched your search
@@ -22301,7 +22301,7 @@ virDomainIOMMUDefCheckABIStability(virDomainIOMMUDef *src,
|
||||
}
|
||||
if (src->aw_bits != dst->aw_bits) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Target domain IOMMU device aw_bits value '%1$d' does not match source '%2$d'"),
|
||||
_("Target domain IOMMU device aw_bits value '%1$u' does not match source '%2$u'"),
|
||||
dst->aw_bits, src->aw_bits);
|
||||
return false;
|
||||
}
|
||||
@@ -28638,7 +28638,7 @@ virDomainIOMMUDefFormat(virBuffer *buf,
|
||||
virTristateSwitchTypeToString(iommu->iotlb));
|
||||
}
|
||||
if (iommu->aw_bits > 0) {
|
||||
virBufferAsprintf(&driverAttrBuf, " aw_bits='%d'",
|
||||
virBufferAsprintf(&driverAttrBuf, " aw_bits='%u'",
|
||||
iommu->aw_bits);
|
||||
}
|
||||
if (iommu->dma_translation != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||
|
||||
@@ -6295,7 +6295,7 @@ qemuBuildIOMMUCommandLine(virCommand *cmd,
|
||||
"T:caching-mode", iommu->caching_mode,
|
||||
"S:eim", qemuOnOffAuto(iommu->eim),
|
||||
"T:device-iotlb", iommu->iotlb,
|
||||
"z:aw-bits", iommu->aw_bits,
|
||||
"p:aw-bits", iommu->aw_bits,
|
||||
"T:dma-translation", iommu->dma_translation,
|
||||
NULL) < 0)
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user