From 8490cdba82e5df40e04a9d900cd514a2e70392f5 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 9 Sep 2020 13:20:09 +0900 Subject: [PATCH] fix length of pss for '-s ' The pss is printed with 18 length space for '-s ' but it is too long. Fix the length of pss as 8 like other options. Change-Id: Ic41a1e106ae86efe2c4bc40ba4a45a1e5a6403a7 Signed-off-by: Seung-Woo Kim --- memps.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/memps.c b/memps.c index 4709428..5a7bfa6 100644 --- a/memps.c +++ b/memps.c @@ -1293,10 +1293,8 @@ static int show_map_new(int pid) printf("-------- -------- -------- -------- -------- " "----------------- ------------------------------\n"); } else { - printf(" S(CODE) S(DATA) P(CODE) P(DATA) " - " PSS\n"); - printf("-------- -------- -------- -------- " - "------------------\n"); + printf(" S(CODE) S(DATA) P(CODE) P(DATA) PSS\n"); + printf("-------- -------- -------- -------- --------\n"); } for (mi = milist; mi;) { shared_clean += mi->shared_clean; @@ -1346,7 +1344,7 @@ static int show_map_new(int pid) temp = NULL; } if (sum) { - printf("%8d %8d %8d %8d %18d\n", + printf("%8d %8d %8d %8d %8d\n", shared_clean_total, shared_dirty_total, private_clean_total, -- 2.7.4