On Fri, 19 Feb 2021, Daniel Wagner wrote: > The fields are not uint64 just longs, update the printf format > specifiers. > > Signed-off-by: Daniel Wagner <dwagner@xxxxxxx> > --- > src/cyclictest/cyclictest.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c > index c3d45f3ae31b..da502d426a8c 100644 > --- a/src/cyclictest/cyclictest.c > +++ b/src/cyclictest/cyclictest.c > @@ -1732,15 +1732,15 @@ static void write_stats(FILE *f, void *data) > if (s->hist_array[j] == 0) > continue; > fprintf(f, "%s", comma ? ",\n" : "\n"); > - fprintf(f, " \"%u\": %" PRIu64, j, s->hist_array[j]); > + fprintf(f, " \"%u\": %ld", j, s->hist_array[j]); > comma = 1; > } > if (comma) > fprintf(f, "\n"); > fprintf(f, " },\n"); > - fprintf(f, " \"cycles\": %" PRIu64 ",\n", s->cycles); > - fprintf(f, " \"min\": %" PRIu64 ",\n", s->min); > - fprintf(f, " \"max\": %" PRIu64 ",\n", s->max); > + fprintf(f, " \"cycles\": %ld,\n", s->cycles); > + fprintf(f, " \"min\": %ld,\n", s->min); > + fprintf(f, " \"max\": %ld,\n", s->max); > fprintf(f, " \"avg\": %.2f,\n", s->avg/s->cycles); > fprintf(f, " \"cpu\": %d,\n", par[i]->cpu); > fprintf(f, " \"node\": %d\n", par[i]->node); > -- > 2.30.0 > > Also Reported-by: Signed-off-by: Christian Eggers <ceggers@xxxxxxx> Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>