library: strictly cosmetic change involving whitespace
This patch just standardizes/normalizes the whitespace employed within a couple of nearly identical #defines. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
a331659015
commit
5c37e2d42d
@ -116,9 +116,9 @@ struct diskstats_info {
|
||||
|
||||
// regular assignment
|
||||
#define DEV_set(e,t,x) setDECL(e) { R->result. t = N-> x; }
|
||||
#define REG_set(e,t,x) setDECL(e) { R->result. t = N->new . x; }
|
||||
#define REG_set(e,t,x) setDECL(e) { R->result. t = N->new. x; }
|
||||
// delta assignment
|
||||
#define HST_set(e,t,x) setDECL(e) { R->result. t = ( N->new . x - N->old. x ); }
|
||||
#define HST_set(e,t,x) setDECL(e) { R->result. t = ( N->new. x - N->old. x ); }
|
||||
|
||||
setDECL(noop) { (void)R; (void)N; }
|
||||
setDECL(extra) { (void)N; R->result.ul_int = 0; }
|
||||
|
@ -132,9 +132,9 @@ struct meminfo_info {
|
||||
(struct meminfo_result *R, struct mem_hist *H)
|
||||
|
||||
// regular assignment
|
||||
#define MEM_set(e,t,x) setDECL(e) { R->result. t = H->new . x; }
|
||||
#define MEM_set(e,t,x) setDECL(e) { R->result. t = H->new. x; }
|
||||
// delta assignment
|
||||
#define HST_set(e,t,x) setDECL(e) { R->result. t = ( H->new . x - H->old. x ); }
|
||||
#define HST_set(e,t,x) setDECL(e) { R->result. t = ( H->new. x - H->old. x ); }
|
||||
|
||||
setDECL(noop) { (void)R; (void)H; }
|
||||
setDECL(extra) { (void)H; R->result.ul_int = 0; }
|
||||
|
@ -139,10 +139,10 @@ struct slabinfo_info {
|
||||
(struct slabinfo_result *R, struct slabs_hist *S, struct slabs_node *N)
|
||||
|
||||
// regular assignment
|
||||
#define REG_set(e,t,x) setDECL(e) { (void)N; R->result. t = S->new . x; }
|
||||
#define REG_set(e,t,x) setDECL(e) { (void)N; R->result. t = S->new. x; }
|
||||
#define NOD_set(e,t,x) setDECL(e) { (void)S; R->result. t = N-> x; }
|
||||
// delta assignment
|
||||
#define HST_set(e,t,x) setDECL(e) { (void)N; R->result. t = (signed long)S->new . x - S->old. x; }
|
||||
#define HST_set(e,t,x) setDECL(e) { (void)N; R->result. t = (signed long)S->new. x - S->old. x; }
|
||||
|
||||
setDECL(noop) { (void)R; (void)S; (void)N; }
|
||||
setDECL(extra) { (void)S; (void)N; R->result.ul_int = 0; }
|
||||
|
@ -146,15 +146,15 @@ struct stat_info {
|
||||
|
||||
// regular assignment
|
||||
#define TIC_set(e,t,x) setDECL(e) { \
|
||||
(void)S; R->result. t = T->new . x; }
|
||||
(void)S; R->result. t = T->new. x; }
|
||||
#define SYS_set(e,t,x) setDECL(e) { \
|
||||
(void)T; R->result. t = S->new . x; }
|
||||
(void)T; R->result. t = S->new. x; }
|
||||
// delta assignment
|
||||
#define TICsetH(e,t,x) setDECL(e) { \
|
||||
(void)S; R->result. t = ( T->new . x - T->old. x ); \
|
||||
(void)S; R->result. t = ( T->new. x - T->old. x ); \
|
||||
if (R->result. t < 0) R->result. t = 0; }
|
||||
#define SYSsetH(e,t,x) setDECL(e) { \
|
||||
(void)T; R->result. t = ( S->new . x - S->old. x ); \
|
||||
(void)T; R->result. t = ( S->new. x - S->old. x ); \
|
||||
if (R->result. t < 0) R->result. t = 0; }
|
||||
|
||||
setDECL(noop) { (void)R; (void)S; (void)T; }
|
||||
|
@ -219,9 +219,9 @@ struct vmstat_info {
|
||||
(struct vmstat_result *R, struct vmstat_hist *H)
|
||||
|
||||
// regular assignment
|
||||
#define REG_set(e,x) setDECL(e) { R->result.ul_int = H->new . x; }
|
||||
#define REG_set(e,x) setDECL(e) { R->result.ul_int = H->new. x; }
|
||||
// delta assignment
|
||||
#define HST_set(e,x) setDECL(e) { R->result.sl_int = ( H->new . x - H->old. x ); }
|
||||
#define HST_set(e,x) setDECL(e) { R->result.sl_int = ( H->new. x - H->old. x ); }
|
||||
|
||||
setDECL(noop) { (void)R; (void)H; }
|
||||
setDECL(extra) { (void)H; R->result.ul_int = 0; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user