From e400f0be473ffccd3d8094ad6440ea063ccd8dbc Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 27 Apr 2021 00:00:00 -0500 Subject: [PATCH] top: extend end-of-job report to reflect unused fields Signed-off-by: Jim Warner --- top/top.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/top/top.c b/top/top.c index eb620017..c1f30fbf 100644 --- a/top/top.c +++ b/top/top.c @@ -453,9 +453,10 @@ static void bye_bye (const char *str) { #else "\n\t winflags = %08x, maxpflgs = %d" #endif - "\n\t sortindx = %d, fieldscur = %s" - "\n\t maxtasks = %d, varcolsz = %d, winlines = %d" + "\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 @@ -482,9 +483,10 @@ static void bye_bye (const char *str) { , (unsigned)sizeof(WIN_t), GROUPSMAX , Curwin->rc.winname, Curwin->grpname , Curwin->rc.winflags, Curwin->maxpflgs - , Curwin->rc.sortindx, Curwin->rc.fieldscur - , Curwin->rc.maxtasks, Curwin->varcolsz, Curwin->winlines + , Curwin->rc.sortindx, Curwin->rc.maxtasks + , Curwin->varcolsz, Curwin->winlines , (int)strlen(Curwin->columnhdr) + , EU_MAXPFLGS, (int)strlen(Curwin->rc.fieldscur) ); } }