summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongwon Kim <dongwon.kim@intel.com>2022-11-28 10:49:45 -0800
committerDongwon Kim <dongwon.kim@intel.com>2022-11-28 10:49:45 -0800
commit48d5b235bbc60aa458ccdd3df7e78ab3a2fae103 (patch)
tree71f60b7cdc063704d50c1ceaa0d668cfe6c07944
parent8b550223386676f627a05828c0fa8061fcdfe54c (diff)
run: cleaning up usage and error print out
'p' is an obsolete option so it needs to be removed from print_usage. And there is no reason to print out "Unknown option:" error string since it is actually done by getopt (e.g. "./run: invalid option -- 'p'"). Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
-rw-r--r--run.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/run.c b/run.c
index 99541b4..7c370ca 100644
--- a/run.c
+++ b/run.c
@@ -378,8 +378,8 @@ abort_handler(int signo)
void print_usage(const char *prog_name)
{
fprintf(stderr,
- "Usage: %s [-d <device>] [-j <max_threads>] [-o <driver>] [-p <pci"
- " id or platform name> [-b] <directories and *.shader_test files>\n",
+ "Usage: %s [-d <device>] [-j <max_threads>] [-o <driver>] "
+ "[-b] <directories and *.shader_test files>\n",
prog_name);
}
@@ -472,7 +472,6 @@ main(int argc, char **argv)
generate_prog_bin = 1;
break;
default:
- fprintf(stderr, "Unknown option: %x\n", opt);
print_usage(argv[0]);
return -1;
}