From a4ad7597d157a158789a767e31a86f571f49d0f8 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 18 May 2005 00:04:17 +0000 Subject: 2005-05-18 Chris Johns * libmisc/capture/capture-cli.c: Fix the output of ctload when there exists a large number of tasks. --- cpukit/ChangeLog | 5 +++++ cpukit/libmisc/capture/capture-cli.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index e95e633f16..c4d4c010ad 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2005-05-18 Chris Johns + + * libmisc/capture/capture-cli.c: Fix the output of ctload when + there exists a large number of tasks. + 2005-05-17 Jennifer Averett * Makefile.am, preinstall.am: Added a common irq.h diff --git a/cpukit/libmisc/capture/capture-cli.c b/cpukit/libmisc/capture/capture-cli.c index ca5041d768..3ef000c403 100644 --- a/cpukit/libmisc/capture/capture-cli.c +++ b/cpukit/libmisc/capture/capture-cli.c @@ -433,12 +433,16 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) fprintf(stdout," %qi\n", rtems_capture_task_time (tasks[i])); } - while (j) + if (count < RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS) { - fprintf(stdout,"\x1b[K\n"); - j--; + j = RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS - count; + while (j > 0) + { + fprintf(stdout,"\x1b[K\n"); + j--; + } } - + last_count = count; cli_load_thread_active = 0; -- cgit v1.2.3