public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rt-tests: cyclicdeadline: fix getopt string
@ 2019-04-02  9:42 Kurt Kanzenbach
  2019-04-03 13:52 ` John Kacur
  0 siblings, 1 reply; 2+ messages in thread
From: Kurt Kanzenbach @ 2019-04-02  9:42 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: rt-users, Kurt Kanzenbach

There is code to parse the interval and step parameters from the command
line. However, these options cannot be set, because the getopt string is
incomplete. Adjust it accordingly to make '-i' and '-s' work.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
 src/sched_deadline/cyclicdeadline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
index 761f8d7d7483..08460107c464 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
@@ -1062,7 +1062,7 @@ int main (int argc, char **argv)
 		exit(-1);
 	}
 
-	while ((c = getopt(argc, argv, "+hac:t:")) >= 0) {
+	while ((c = getopt(argc, argv, "+hac:i:s:t:")) >= 0) {
 		switch (c) {
 		case 'a':
 			all_cpus = 1;
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rt-tests: cyclicdeadline: fix getopt string
  2019-04-02  9:42 [PATCH] rt-tests: cyclicdeadline: fix getopt string Kurt Kanzenbach
@ 2019-04-03 13:52 ` John Kacur
  0 siblings, 0 replies; 2+ messages in thread
From: John Kacur @ 2019-04-03 13:52 UTC (permalink / raw)
  To: Kurt Kanzenbach; +Cc: Clark Williams, rt-users



On Tue, 2 Apr 2019, Kurt Kanzenbach wrote:

> There is code to parse the interval and step parameters from the command
> line. However, these options cannot be set, because the getopt string is
> incomplete. Adjust it accordingly to make '-i' and '-s' work.
> 
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
>  src/sched_deadline/cyclicdeadline.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
> index 761f8d7d7483..08460107c464 100644
> --- a/src/sched_deadline/cyclicdeadline.c
> +++ b/src/sched_deadline/cyclicdeadline.c
> @@ -1062,7 +1062,7 @@ int main (int argc, char **argv)
>  		exit(-1);
>  	}
>  
> -	while ((c = getopt(argc, argv, "+hac:t:")) >= 0) {
> +	while ((c = getopt(argc, argv, "+hac:i:s:t:")) >= 0) {
>  		switch (c) {
>  		case 'a':
>  			all_cpus = 1;
> -- 
> 2.11.0

Signed-off-by: John Kacur <jkacur@redhat.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-03 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-02  9:42 [PATCH] rt-tests: cyclicdeadline: fix getopt string Kurt Kanzenbach
2019-04-03 13:52 ` John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox