- 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 <dixlor@xxxxxxxxx> Signed-off-by: John Kacur <jkacur@xxxxxxxxxx> --- 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 fc6fd81ba9ca..430e992fc066 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 <options> 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); -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html