Commit bf32654a authored by Ryan Lim's avatar Ryan Lim Committed by Greg Kroah-Hartman

greybus: loopback_test: Fix -z argument bug

The -z argument was missing the break statement needed in the switch
block and was not in the getopt list.
Signed-off-by: default avatarRyan Lim <limryan@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2861e207
...@@ -901,7 +901,7 @@ int main(int argc, char *argv[]) ...@@ -901,7 +901,7 @@ int main(int argc, char *argv[])
memset(&t, 0, sizeof(t)); memset(&t, 0, sizeof(t));
while ((o = getopt(argc, argv, while ((o = getopt(argc, argv,
"t:s:i:S:D:m:v::d::r::p::a::l::x::o:c:w:O:")) != -1) { "t:s:i:S:D:m:v::d::r::p::a::l::x::o:O:c:w:z::")) != -1) {
switch (o) { switch (o) {
case 't': case 't':
snprintf(t.test_name, MAX_STR_LEN, "%s", optarg); snprintf(t.test_name, MAX_STR_LEN, "%s", optarg);
...@@ -956,6 +956,7 @@ int main(int argc, char *argv[]) ...@@ -956,6 +956,7 @@ int main(int argc, char *argv[])
break; break;
case 'z': case 'z':
t.file_output = 1; t.file_output = 1;
break;
default: default:
usage(); usage();
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment