pmap: formatting only changes, for minimum consistency
This patch just adjusts miscellaneous indentation etc. so we can begin the odious task of addressing the pmap nls needs with at least a consistently formatted base. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
f85439e42d
commit
9db537503d
9
pmap.c
9
pmap.c
@ -261,10 +261,7 @@ static void print_extended_maps (FILE *f)
|
|||||||
int maxw1=0, maxw2=0, maxw3=0, maxw4=0, maxw5=0, maxwv=0;
|
int maxw1=0, maxw2=0, maxw3=0, maxw4=0, maxw5=0, maxwv=0;
|
||||||
int nfields, firstmapping, footer_gap, i, width_of_total;
|
int nfields, firstmapping, footer_gap, i, width_of_total;
|
||||||
unsigned KLONG value;
|
unsigned KLONG value;
|
||||||
char *ret;
|
char *ret, *map_basename, c, has_vmflags = 0;
|
||||||
char *map_basename;
|
|
||||||
char c;
|
|
||||||
char has_vmflags = 0;
|
|
||||||
|
|
||||||
/* initial widths */
|
/* initial widths */
|
||||||
maxw1 = strlen("Address");
|
maxw1 = strlen("Address");
|
||||||
@ -499,7 +496,6 @@ static int one_proc(proc_t * p)
|
|||||||
unsigned long total_private_readonly = 0ul;
|
unsigned long total_private_readonly = 0ul;
|
||||||
unsigned long total_private_writeable = 0ul;
|
unsigned long total_private_writeable = 0ul;
|
||||||
KLONG diff = 0;
|
KLONG diff = 0;
|
||||||
|
|
||||||
const char *cp2 = NULL;
|
const char *cp2 = NULL;
|
||||||
unsigned long long rss = 0ull;
|
unsigned long long rss = 0ull;
|
||||||
unsigned long long private_dirty = 0ull;
|
unsigned long long private_dirty = 0ull;
|
||||||
@ -596,8 +592,7 @@ static int one_proc(proc_t * p)
|
|||||||
(private_dirty + shared_dirty),
|
(private_dirty + shared_dirty),
|
||||||
flags, cp2);
|
flags, cp2);
|
||||||
/* reset some counters */
|
/* reset some counters */
|
||||||
rss = shared_dirty = private_dirty =
|
rss = shared_dirty = private_dirty = 0ull;
|
||||||
0ull;
|
|
||||||
diff = 0;
|
diff = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user