]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
whitespace clean-ups
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 14 Jul 2021 13:56:26 +0000 (15:56 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 15 Jul 2021 12:50:48 +0000 (14:50 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
docs/schemas/capability.rng
src/conf/capabilities.c
src/util/virresctrl.c
tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml
tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml

index 66dba829a826ddeb6cb615225cc98980f5ba2de7..7747a01558546d010f5a583ef7f8e66f71031144 100644 (file)
               <attribute name="granularity">
                 <ref name="unsignedInt"/>
               </attribute>
-            <optional>
-              <attribute name="min">
-                <ref name="unsignedInt"/>
-              </attribute>
-            </optional>
+              <optional>
+                <attribute name="min">
+                  <ref name="unsignedInt"/>
+                </attribute>
+              </optional>
               <attribute name="maxAllocs">
                 <ref name="unsignedInt"/>
               </attribute>
index f311377469df1656dc75aad5a7771ca9588544a2..15c76d791a4b0eae1209a5e67d58480a79eac459 100644 (file)
@@ -1056,7 +1056,7 @@ virCapabilitiesFormatMemoryBandwidth(virBuffer *buf,
                           node->id, cpus_str);
 
         virBufferAsprintf(&childrenBuf,
-                          "<control granularity='%u' min ='%u' "
+                          "<control granularity='%u' min='%u' "
                           "maxAllocs='%u'/>\n",
                           control->granularity, control->min,
                           control->max_allocation);
index 2a3bcda6f59bd0b12d8556634245e4bf66ed753e..1c41d1d3560375348841bdc2aec538c92c057ac8 100644 (file)
@@ -662,7 +662,7 @@ virResctrlGetMemoryBandwidthInfo(virResctrlInfo *resctrl)
     rv = virFileReadValueUint(&i_membw->max_allocation,
                               SYSFS_RESCTRL_PATH "/info/MB/num_closids");
     if (rv == -2) {
-         /* Similar reasoning to min_bandwidth above. */
+        /* Similar reasoning to min_bandwidth above. */
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
                        _("Cannot get max allocation from resctrl memory info"));
     }
index 5f3678e0726b9a007564b96fd2b550261d05409f..1327d85c9815889b9039673a29934b0e66fc6368 100644 (file)
     </cache>
     <memory_bandwidth>
       <node id='0' cpus='0-5'>
-        <control granularity='10' min ='10' maxAllocs='4'/>
+        <control granularity='10' min='10' maxAllocs='4'/>
       </node>
       <node id='1' cpus='6-11'>
-        <control granularity='10' min ='10' maxAllocs='4'/>
+        <control granularity='10' min='10' maxAllocs='4'/>
       </node>
       <monitor maxMonitors='176'>
         <feature name='mbm_total_bytes'/>
index c386edd4b0ca17f65201b4216dc92dea47b45138..b638bbd1c96d074318dff0d900648ad96ac5f904 100644 (file)
     </cache>
     <memory_bandwidth>
       <node id='0' cpus='0-5'>
-        <control granularity='10' min ='10' maxAllocs='4'/>
+        <control granularity='10' min='10' maxAllocs='4'/>
       </node>
       <node id='1' cpus='6-11'>
-        <control granularity='10' min ='10' maxAllocs='4'/>
+        <control granularity='10' min='10' maxAllocs='4'/>
       </node>
       <monitor maxMonitors='176'>
         <feature name='mbm_total_bytes'/>