From 831a2fffb226de038d64a5f7ba90a826678a9a32 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 13 Jun 2023 10:43:41 +0200 Subject: [PATCH] minor style and doc fixups Signed-off-by: Wolfgang Bumiller --- src/PVE/Mapping/PCI.pm | 12 ++++++------ src/PVE/Mapping/USB.pm | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/PVE/Mapping/PCI.pm b/src/PVE/Mapping/PCI.pm index a3ced0e..19ace98 100644 --- a/src/PVE/Mapping/PCI.pm +++ b/src/PVE/Mapping/PCI.pm @@ -52,14 +52,14 @@ my $PCI_RE = "[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?"; my $map_fmt = { node => get_standard_option('pve-node'), id =>{ - description => "The vendor and device ID that is expected. Used for". - " detecting hardware changes", + description => "The vendor and device ID that is expected. Used for" + ." detecting hardware changes", type => 'string', pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, }, 'subsystem-id' => { - description => "The subsystem vendor and device ID that is expected. Used". - " for detecting hardware changes.", + description => "The subsystem vendor and device ID that is expected. Used" + ." for detecting hardware changes.", type => 'string', pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, optional => 1, @@ -74,8 +74,8 @@ my $map_fmt = { }, iommugroup => { type => 'integer', - description => "The IOMMU group in which the device is to be expected in.". - "Used for detecting hardware changes.", + description => "The IOMMU group in which the device is to be expected in." + ." Used for detecting hardware changes.", optional => 1, }, description => { diff --git a/src/PVE/Mapping/USB.pm b/src/PVE/Mapping/USB.pm index ad86537..34bc3cb 100644 --- a/src/PVE/Mapping/USB.pm +++ b/src/PVE/Mapping/USB.pm @@ -50,8 +50,8 @@ sub type { my $map_fmt = { node => get_standard_option('pve-node'), 'id' => { - description => "The vendor and device ID that is expected. If a USB path". - " is given, it is only used for detecting hardware changes", + description => "The vendor and device ID that is expected. If a USB path" + ." is given, it is only used for detecting hardware changes", type => 'string', pattern => qr/^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$/, }, @@ -73,11 +73,11 @@ my $defaultData = { propertyList => { id => { type => 'string', - description => "The ID of the logical PCI mapping.", + description => "The ID of the logical USB mapping.", format => 'pve-configid', }, description => { - description => "Description of the logical PCI device.", + description => "Description of the logical USB device.", type => 'string', optional => 1, maxLength => 4096,