diff mbox series

[rt-tests,v1,01/23] cyclicdeadline: Fix JSON output format

Message ID 20210519170945.21941-2-dwagner@suse.de
State New
Headers show
Series Rename --output to --json | expand

Commit Message

Daniel Wagner May 19, 2021, 5:09 p.m. UTC
Add missing comma after the max entry.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
 src/sched_deadline/cyclicdeadline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

John Kacur May 21, 2021, 9:30 p.m. UTC | #1
On Wed, 19 May 2021, Daniel Wagner wrote:

> Add missing comma after the max entry.

> 

> Signed-off-by: Daniel Wagner <dwagner@suse.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 8d801b4c154a..b81fb3a2091d 100644

> --- a/src/sched_deadline/cyclicdeadline.c

> +++ b/src/sched_deadline/cyclicdeadline.c

> @@ -977,7 +977,7 @@ static void write_stats(FILE *f, void *data)

>  		fprintf(f, "    \"%u\": {\n", i);

>  		fprintf(f, "	 \"cycles\": %ld,\n", s->cycles);

>  		fprintf(f, "	 \"min\": %ld,\n", s->min);

> -		fprintf(f, "	 \"max\": %ld\n", s->max);

> +		fprintf(f, "	 \"max\": %ld,\n", s->max);

>  		fprintf(f, "	 \"avg\": %.2f\n", s->avg/s->cycles);

>  		fprintf(f, "    }%s\n", i == nr_threads - 1 ? "" : ",");

>  	}

> -- 

> 2.31.1

> 

> 

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

Patch

diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
index 8d801b4c154a..b81fb3a2091d 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
@@ -977,7 +977,7 @@  static void write_stats(FILE *f, void *data)
 		fprintf(f, "    \"%u\": {\n", i);
 		fprintf(f, "	 \"cycles\": %ld,\n", s->cycles);
 		fprintf(f, "	 \"min\": %ld,\n", s->min);
-		fprintf(f, "	 \"max\": %ld\n", s->max);
+		fprintf(f, "	 \"max\": %ld,\n", s->max);
 		fprintf(f, "	 \"avg\": %.2f\n", s->avg/s->cycles);
 		fprintf(f, "    }%s\n", i == nr_threads - 1 ? "" : ",");
 	}