]> granicus.if.org Git - procps-ng/commitdiff
top: extend end-of-job report to reflect unused fields
authorJim Warner <james.warner@comcast.net>
Sun, 25 Apr 2021 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Thu, 29 Apr 2021 11:42:44 +0000 (21:42 +1000)
In anticipation of adding some smaps_rollup stuff, our
end-of-job report will now offer some insight into the
current unused entries for a window's fieldscur array.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index d26497fa0dfd7ff5bbd2bd642554694ed9264c92..604d172bf7f1d1bb39a9ef71409317b340b9a27a 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -377,6 +377,7 @@ static void bye_bye (const char *str) {
       "\n\t   sortindx = %d, maxtasks = %d"
       "\n\t   varcolsz = %d, winlines = %d"
       "\n\t   strlen(columnhdr) = %d"
+      "\n\t   current fieldscur = %d, maximum fieldscur = %d"
       "\n"
       , __func__
       , PACKAGE_STRING
@@ -404,6 +405,7 @@ static void bye_bye (const char *str) {
       , Curwin->rc.sortindx, Curwin->rc.maxtasks
       , Curwin->varcolsz, Curwin->winlines
       , (int)strlen(Curwin->columnhdr)
+      , EU_MAXPFLGS, (int)strlen(Curwin->rc.fieldscur)
       );
    }
 }