[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191112223212.GA173366@Journey.localdomain>
Date: Wed, 13 Nov 2019 04:02:12 +0530
From: Hritik Vijay <hritikxx8@...il.com>
To: netdev@...r.kernel.org
Subject: [PATCH] Show header for --processes/-p in ss
>From 9b8bdd8bac2efae19d267e0262a795694590eaaf Mon Sep 17 00:00:00 2001
From: Hritik Vijay <hritikxx8@...il.com>
Date: Wed, 13 Nov 2019 03:57:02 +0530
Subject: [PATCH] Show header for --processes/-p
ss by default shows headers for every column but omits it for --processes
for no apparent reason. This patch adds the "Process" header.
Signed-off-by: Hritik Vijay <hritikxx8@...il.com>
---
misc/ss.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/misc/ss.c b/misc/ss.c
index efa87781..794c1895 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -133,6 +133,7 @@ enum col_id {
COL_RADDR,
COL_RSERV,
COL_EXT,
+ COL_PROC,
COL_MAX
};
@@ -160,6 +161,7 @@ static struct column columns[] = {
{ ALIGN_LEFT, "Port", "", 0, 0, 0 },
{ ALIGN_RIGHT, "Peer Address:", " ", 0, 0, 0 },
{ ALIGN_LEFT, "Port", "", 0, 0, 0 },
+ { ALIGN_LEFT, "Process", "", 0, 0, 0 },
{ ALIGN_LEFT, "", "", 0, 0, 0 },
};
--
2.17.1
Powered by blists - more mailing lists