mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
conf: Remove ATTRIBUTE_FALLTHROUGH from virDomainChrTargetDefFormat()
Formatting the <target/> element for serial devices will become a bit more complicated later on, and leaving the fallthrough behavior there would do nothing but complicate it further. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
46084f2aa1
commit
7983068fa5
@ -24019,14 +24019,18 @@ virDomainChrTargetDefFormat(virBufferPtr buf,
|
||||
return -1;
|
||||
}
|
||||
|
||||
virBufferAddLit(buf, "<target ");
|
||||
|
||||
if (def->targetType != VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) {
|
||||
virBufferAsprintf(buf,
|
||||
"<target type='%s' port='%d'/>\n",
|
||||
targetType,
|
||||
def->target.port);
|
||||
break;
|
||||
"type='%s' ",
|
||||
targetType);
|
||||
}
|
||||
ATTRIBUTE_FALLTHROUGH;
|
||||
|
||||
virBufferAsprintf(buf,
|
||||
"port='%d'/>\n",
|
||||
def->target.port);
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_PARALLEL:
|
||||
virBufferAsprintf(buf, "<target port='%d'/>\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user