[Pdbg] [PATCH v2 7/9] main: Print valid range for -p, -c, -t in usage

Amitay Isaacs amitay at ozlabs.org
Wed May 23 14:31:08 AEST 2018


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index 4e0ed16..65bf6c5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -131,9 +131,9 @@ static void print_usage(char *pname)
 
 	printf("Usage: %s [options] command ...\n\n", pname);
 	printf(" Options:\n");
-	printf("\t-p, --processor=processor-id\n");
-	printf("\t-c, --chip=core-id\n");
-	printf("\t-t, --thread=thread\n");
+	printf("\t-p, --processor=<0-%d>\n", MAX_PROCESSORS-1);
+	printf("\t-c, --chip=<0-%d>\n", MAX_CHIPS-1);
+	printf("\t-t, --thread=<0-%d>\n", MAX_THREADS-1);
 	printf("\t-a, --all\n");
 	printf("\t\tRun command on all possible processors/chips/threads (default)\n");
 	printf("\t-b, --backend=backend\n");
-- 
2.17.0



More information about the Pdbg mailing list