Message ID | 20210519170945.21941-2-dwagner@suse.de |
---|---|
State | New |
Headers | show |
Series | Rename --output to --json | expand |
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 --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 ? "" : ","); }
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(-)