[Devel] [PATCH 1/7] SCALE_UBC: to support terminating ; properly
Igor Podlesny
openvz at poige.ru
Mon May 13 01:39:17 PDT 2013
-- Similar to commit 670b1af07e5d0402b139e5678651118567695275
Also since lots of lines were touched anyway I aligned second arguments
to increase code readability.
---
src/vzcfgscale.c | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/src/vzcfgscale.c b/src/vzcfgscale.c
index d226d6a..d78e40b 100644
--- a/src/vzcfgscale.c
+++ b/src/vzcfgscale.c
@@ -91,7 +91,7 @@ do { \
val1 = LONG_MAX; \
param->name[0] = val0; \
param->name[1] = val1; \
-} while(0);
+} while(0)
#define SCALE_PARAM(name, k) \
do { \
@@ -107,27 +107,27 @@ do { \
if (ubc_k)
{
- SCALE_UBC(kmemsize, ubc_k)
- SCALE_UBC(avnumproc, ubc_k)
- SCALE_UBC(numproc, ubc_k)
- SCALE_UBC(vmguarpages, ubc_k)
- SCALE_UBC(oomguarpages, ubc_k)
- SCALE_UBC(lockedpages, ubc_k)
- SCALE_UBC(shmpages, ubc_k)
- SCALE_UBC(privvmpages, ubc_k)
- SCALE_UBC(numfile, ubc_k)
- SCALE_UBC(numflock, ubc_k)
- SCALE_UBC(numpty, ubc_k)
- SCALE_UBC(numsiginfo, ubc_k)
- SCALE_UBC(dcachesize, ubc_k)
- SCALE_UBC(physpages, ubc_k)
- SCALE_UBC(numtcpsock, ubc_k)
- SCALE_UBC(numothersock, ubc_k)
- SCALE_UBC(tcpsndbuf, ubc_k)
- SCALE_UBC(tcprcvbuf, ubc_k)
- SCALE_UBC(othersockbuf, ubc_k)
- SCALE_UBC(dgramrcvbuf, ubc_k)
- SCALE_UBC(numiptent, ubc_k)
+ SCALE_UBC(kmemsize, ubc_k);
+ SCALE_UBC(avnumproc, ubc_k);
+ SCALE_UBC(numproc, ubc_k);
+ SCALE_UBC(vmguarpages, ubc_k);
+ SCALE_UBC(oomguarpages, ubc_k);
+ SCALE_UBC(lockedpages, ubc_k);
+ SCALE_UBC(shmpages, ubc_k);
+ SCALE_UBC(privvmpages, ubc_k);
+ SCALE_UBC(numfile, ubc_k);
+ SCALE_UBC(numflock, ubc_k);
+ SCALE_UBC(numpty, ubc_k);
+ SCALE_UBC(numsiginfo, ubc_k);
+ SCALE_UBC(dcachesize, ubc_k);
+ SCALE_UBC(physpages, ubc_k);
+ SCALE_UBC(numtcpsock, ubc_k);
+ SCALE_UBC(numothersock, ubc_k);
+ SCALE_UBC(tcpsndbuf, ubc_k);
+ SCALE_UBC(tcprcvbuf, ubc_k);
+ SCALE_UBC(othersockbuf, ubc_k);
+ SCALE_UBC(dgramrcvbuf, ubc_k);
+ SCALE_UBC(numiptent, ubc_k);
}
if (cpu_k && param->cpu_units != NULL)
{
--
1.7.9.5
More information about the Devel
mailing list