]> xenbits.xensource.com Git - libvirt.git/commitdiff
vz_utils: Reformat
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Jun 2015 07:56:56 +0000 (09:56 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Jun 2015 07:28:28 +0000 (09:28 +0200)
Honour our formatting style. Adjust indentation so it matches the
rest of our code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/vz/vz_utils.h

index 9b46bf9ed1817cb466ac004f75a7962d456c9f99..db09647d3d82e83a14d8502beba0b6c37f8f7e0f 100644 (file)
@@ -35,7 +35,7 @@
 
 # define vzParseError()                                                 \
     virReportErrorHelper(VIR_FROM_TEST, VIR_ERR_OPERATION_FAILED, __FILE__,    \
-                     __FUNCTION__, __LINE__, _("Can't parse prlctl output"))
+                         __FUNCTION__, __LINE__, _("Can't parse prlctl output"))
 
 # define IS_CT(def)  (def->os.type == VIR_DOMAIN_OSTYPE_EXE)
 
@@ -77,8 +77,8 @@ typedef struct _vzConn *vzConnPtr;
 struct _vzCountersCache {
     PRL_HANDLE stats;
     virCond cond;
-    // -1 - unsubscribed
-    // > -1 - subscribed
+    /* = -1 - unsubscribed
+       > -1 - subscribed */
     int count;
 };
 
@@ -115,14 +115,14 @@ char * vzAddFileExt(const char *path, const char *ext);
 void vzDriverLock(vzConnPtr driver);
 void vzDriverUnlock(vzConnPtr driver);
 virStorageVolPtr vzStorageVolLookupByPathLocked(virConnectPtr conn,
-                                                       const char *path);
+                                                const char *path);
 int vzStorageVolDefRemove(virStoragePoolObjPtr privpool,
-                                 virStorageVolDefPtr privvol);
+                          virStorageVolDefPtr privvol);
 
-# define PARALLELS_BLOCK_STATS_FOREACH(OP)                                   \
-             OP(rd_req, VIR_DOMAIN_BLOCK_STATS_READ_REQ, "read_requests")    \
-             OP(rd_bytes, VIR_DOMAIN_BLOCK_STATS_READ_BYTES, "read_total")   \
-             OP(wr_req, VIR_DOMAIN_BLOCK_STATS_WRITE_REQ, "write_requests")  \
-             OP(wr_bytes, VIR_DOMAIN_BLOCK_STATS_WRITE_BYTES, "write_total")
+# define PARALLELS_BLOCK_STATS_FOREACH(OP)                              \
+    OP(rd_req, VIR_DOMAIN_BLOCK_STATS_READ_REQ, "read_requests")        \
+    OP(rd_bytes, VIR_DOMAIN_BLOCK_STATS_READ_BYTES, "read_total")       \
+    OP(wr_req, VIR_DOMAIN_BLOCK_STATS_WRITE_REQ, "write_requests")      \
+    OP(wr_bytes, VIR_DOMAIN_BLOCK_STATS_WRITE_BYTES, "write_total")
 
 #endif