From 88fe45ef6815d7d06cc7efba70351fdc80277996 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 20 Jun 2015 00:00:00 -0500 Subject: [PATCH] top: sacrifice a redundant procps_linux_version() call With the commit referenced below, the linux version is no longer available via an external variable. So we'll eliminate the extra superficial function call employed at program end as part of a debugging (only) o/p spew. [ the user will soon be returned to the command line ] [ & he/she can run their own 'uname -r' if in doubt! ] Reference(s): commit 56d9d5e7e701e71646679b2b8cefa9239ee59592 Signed-off-by: Jim Warner --- top/top.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/top/top.c b/top/top.c index 16554be1..273c4a54 100644 --- a/top/top.c +++ b/top/top.c @@ -407,11 +407,10 @@ static void bye_bye (const char *str) { at_eoj(); // restore tty in preparation for exit #ifdef ATEOJ_RPTSTD { proc_t *p; - int linux_version_code = procps_linux_version(); if (!str && !Frames_signal && Ttychanged) { fprintf(stderr, "\n%s's Summary report:" "\n\tProgram" - "\n\t Linux version = %u.%u.%u, %s" + "\n\t %s" "\n\t Hertz = %u (%u bytes, %u-bit time)" "\n\t page_bytes = %d, Cpu_faux_tot = %d, smp_num_cpus = %d" "\n\t sizeof(CPU_t) = %u, sizeof(HST_t) = %u (%d HST_t's/Page), HHist_siz = %u" @@ -441,9 +440,6 @@ static void bye_bye (const char *str) { "\n\t strlen(columnhdr) = %d" "\n" , __func__ - , LINUX_VERSION_MAJOR(linux_version_code) - , LINUX_VERSION_MINOR(linux_version_code) - , LINUX_VERSION_PATCH(linux_version_code) , PACKAGE_STRING , (unsigned)Hertz, (unsigned)sizeof(Hertz), (unsigned)sizeof(Hertz) * 8 , (int)page_bytes, Cpu_faux_tot, (int)smp_num_cpus, (unsigned)sizeof(CPU_t)