From: Mathieu Desnoyers Date: Tue, 28 May 2013 03:49:11 +0000 (-0400) Subject: rcuja test: fix -k option X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46f373a6789943f3e64fd97e55cdb7a5234e50f2;p=urcu.git rcuja test: fix -k option Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_ja.c b/tests/test_urcu_ja.c index 03af485..50f94cc 100644 --- a/tests/test_urcu_ja.c +++ b/tests/test_urcu_ja.c @@ -167,7 +167,7 @@ void show_usage(int argc, char **argv) printf(" [-a cpu#] [-a cpu#]... (affinity)\n"); printf(" [not -u nor -s] Add entries (supports redundant keys).\n"); printf(" [-r ratio] Add ratio (in %% of add+removal).\n"); - printf(" [-k nr_nodes] Number of nodes to insert initially.\n"); + printf(" [-k] Populate init nodes.\n"); printf(" [-R offset] Lookup pool offset.\n"); printf(" [-S offset] Write pool offset.\n"); printf(" [-T offset] Init pool offset.\n"); @@ -925,7 +925,7 @@ int main(int argc, char **argv) add_ratio = atoi(argv[++i]); break; case 'k': - init_populate = atol(argv[++i]); + init_populate = 1; break; case 'R': lookup_pool_offset = atol(argv[++i]);