Thread (26 messages) 26 messages, 2 authors, 2021-01-26

Re: [RFC v3 07/19] cyclicdeadline: Add missing step command line argument

flat view

From: John Kacur <jkacur@redhat.com>
Date: 2021-01-26 18:46:10


On Fri, 15 Jan 2021, Daniel Wagner wrote:
quoted hunk ↗ jump to hunk
When adding long command line options support the --step
argument was missed out. Add it back.

Fixes: 9723329835b3 ("cyclicdeadline: Add long command line options")
Signed-off-by: Daniel Wagner <redacted>
---
 src/sched_deadline/cyclicdeadline.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
index 19a7fcb6c488..cd12c7f313c2 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
@@ -1013,11 +1013,12 @@ int main(int argc, char **argv)
 			{ "duration",	required_argument,	NULL,	'D' },
 			{ "help",	no_argument,		NULL,	'h' },
 			{ "interval",	required_argument,	NULL,	'i' },
+			{ "step",	required_argument,	NULL,	's' },
 			{ "threads",	required_argument,	NULL,	't' },
 			{ "quiet",	no_argument,		NULL,	'q' },
 			{ NULL,		0,			NULL,	0   },
 		};
-		c = getopt_long(argc, argv, "a::c:D:hi:t:q", options, NULL);
+		c = getopt_long(argc, argv, "a::c:D:hi:s:t:q", options, NULL);
 		if (c == -1)
 			break;
 		switch (c) {
-- 
2.29.2
Signed-off-by: John Kacur <jkacur@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help