From: Michal Privoznik Date: Wed, 21 Dec 2022 14:15:58 +0000 (+0100) Subject: domain_capabilities: s/qemuDomainCapsFeatureFormatSimple/virDomainCapsFeatureFormatSi... X-Git-Tag: v9.0.0-rc1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea0315f60227b52cecc4258a165433cfc2028cf;p=thirdparty%2Flibvirt.git domain_capabilities: s/qemuDomainCapsFeatureFormatSimple/virDomainCapsFeatureFormatSimple/ There's nothing qemu specific about qemuDomainCapsFeatureFormatSimple() and in fact, the function lives in hypervisor agnostic location and thus mustn't have qemu prefix. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index 247cfa49de..4e412c0fd8 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -335,9 +335,9 @@ virDomainCapsStringValuesFormat(virBuffer *buf, static void -qemuDomainCapsFeatureFormatSimple(virBuffer *buf, - const char *featurename, - virTristateBool supported) +virDomainCapsFeatureFormatSimple(virBuffer *buf, + const char *featurename, + virTristateBool supported) { if (supported == VIR_TRISTATE_BOOL_ABSENT) return; @@ -697,9 +697,9 @@ virDomainCapsFormatFeatures(const virDomainCaps *caps, if (i == VIR_DOMAIN_CAPS_FEATURE_IOTHREADS) continue; - qemuDomainCapsFeatureFormatSimple(&childBuf, - virDomainCapsFeatureTypeToString(i), - caps->features[i]); + virDomainCapsFeatureFormatSimple(&childBuf, + virDomainCapsFeatureTypeToString(i), + caps->features[i]); } virDomainCapsFeatureSEVFormat(&childBuf, caps->sev); @@ -728,8 +728,8 @@ virDomainCapsFormat(const virDomainCaps *caps) if (caps->maxvcpus) virBufferAsprintf(&buf, "\n", caps->maxvcpus); - qemuDomainCapsFeatureFormatSimple(&buf, "iothreads", - caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]); + virDomainCapsFeatureFormatSimple(&buf, "iothreads", + caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]); virDomainCapsOSFormat(&buf, &caps->os); virDomainCapsCPUFormat(&buf, &caps->cpu);