From a1d3737879b3e77b2a995be4f8c366039e24289b Mon Sep 17 00:00:00 2001 From: John Kacur Date: Fri, 14 Aug 2015 13:04:10 +0100 Subject: Fix VERSION in rt-migrate-test - Change VERSION_STRING to VERSION to get the same version number as the the rest of the suite - Assume that VERSION is defined, instead of replacing it with a nonsensical number - Print the help option in the usage() function Reported-by: DIXLOR Signed-off-by: John Kacur --- src/rt-migrate-test/rt-migrate-test.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c index fc6fd81..430e992 100644 --- a/src/rt-migrate-test/rt-migrate-test.c +++ b/src/rt-migrate-test/rt-migrate-test.c @@ -47,10 +47,6 @@ #define gettid() syscall(__NR_gettid) -#ifndef VERSION_STRING -#define VERSION_STRING 0.3 -#endif - int nr_tasks; int lfd; @@ -178,7 +174,7 @@ static void usage(char **argv) p--; p++; - printf("%s %1.2f\n", p, VERSION_STRING); + printf("%s %1.2f\n", p, VERSION); printf("Usage:\n" "%s nr_tasks\n\n" "-p prio --prio prio base priority to start RT tasks with (2) \n" @@ -187,6 +183,7 @@ static void usage(char **argv) "-m time --maxerr time Max allowed error (microsecs)\n" "-l loops --loops loops Number of iterations to run (50)\n" "-c --check Stop if lower prio task is quicker than higher (off)\n" + "-h --help\n" " () above are defaults \n", p); exit(0); -- cgit 1.2.3-korg