diff options
author | Clark Williams <williams@redhat.com> | 2020-11-02 07:33:14 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2020-11-02 07:33:14 -0600 |
commit | 35017408b2a918d88b5d21d63d36ca3766c1fbf8 (patch) | |
tree | 69b5da3b1985803afabf15d7fe6496d8753233a6 | |
parent | a36fcb293ca1b5c2e6ad5cb85f6b5ba4bcd3db0c (diff) | |
download | stalld-35017408b2a918d88b5d21d63d36ca3766c1fbf8.tar.gz |
remove warning from parse_old_task_format
The test at the end to compare waiting_tasks count to the passed
in nr_entries will likely fire a lot in normal usage, due to tasks
exiting if nothing else. Remove it.
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | src/stalld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stalld.c b/src/stalld.c index cb989e4..013e809 100644 --- a/src/stalld.c +++ b/src/stalld.c @@ -438,7 +438,7 @@ static int count_task_lines(char *buffer) int lines = 0; /* find the runnable tasks: header */ - ptr = strstr(buffer, "runnable tasks:"); + ptr = strstr(buffer, TASK_MARKER); if (ptr == NULL) return 0; @@ -544,6 +544,7 @@ int parse_old_task_format(char *buffer, struct task_info *task_info, int nr_entr break; } } + return waiting_tasks; } |