parse_ras_data() was calling fflush() before, not after printf().
As a result, information about an event would not be printed
immediately but possibly much later.
Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
/* TODO - logging */
trace_seq_init(&s);
printf("cpu %02d:", pdata->cpu);
- fflush(stdout);
pevent_print_event(pdata->ras->pevent, &s, &record);
trace_seq_do_printf(&s);
printf("\n");
+ fflush(stdout);
}
static int get_num_cpus(struct ras_events *ras)