]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_cgroup: Adjust spacing around incrementor
authorJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 00:00:21 +0000 (20:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 01:05:46 +0000 (21:05 -0400)
Change "i+1" to "i + 1"

src/qemu/qemu_cgroup.c
src/qemu/qemu_process.c

index c1d89bba4d71a5cc09698eda3ea753658ff21559..9d3937030865d83c26b64cb7e98e9e2e6e764f28 100644 (file)
@@ -1140,7 +1140,8 @@ qemuSetupCgroupForIOThreads(virDomainObjPtr vm)
         /* IOThreads are numbered 1..n, although the array is 0..n-1,
          * so we will account for that here
          */
-        if (virCgroupNewIOThread(priv->cgroup, i+1, true, &cgroup_iothread) < 0)
+        if (virCgroupNewIOThread(priv->cgroup, i + 1, true,
+                                 &cgroup_iothread) < 0)
             goto cleanup;
 
         /* move the thread for iothread to sub dir */
@@ -1159,13 +1160,13 @@ qemuSetupCgroupForIOThreads(virDomainObjPtr vm)
              * qemuSetupCgroupIOThreadsPin will fail. */
             for (j = 0; j < def->cputune.niothreadspin; j++) {
                 /* IOThreads are numbered/named 1..n */
-                if (def->cputune.iothreadspin[j]->vcpuid != i+1)
+                if (def->cputune.iothreadspin[j]->vcpuid != i + 1)
                     continue;
 
                 if (qemuSetupCgroupIOThreadsPin(cgroup_iothread,
                                                 def->cputune.iothreadspin,
                                                 def->cputune.niothreadspin,
-                                                i+1) < 0)
+                                                i + 1) < 0)
                     goto cleanup;
 
                 break;
index a2efdcaad904a4f543f016ebe653099f5c8a5610..daca7c1fb1aee113e522d056006b1917062bf152 100644 (file)
@@ -2358,7 +2358,7 @@ qemuProcessSetIOThreadsAffinity(virDomainObjPtr vm)
         /* set affinity only for existing vcpus */
         if (!(pininfo = virDomainVcpuPinFindByVcpu(def->cputune.iothreadspin,
                                                    def->cputune.niothreadspin,
-                                                   i+1)))
+                                                   i + 1)))
             continue;
 
         if (virProcessSetAffinity(priv->iothreadpids[i], pininfo->cpumask) < 0)