On Thu, May 07, 2020 at 07:57:41PM +0800, John Garry wrote:

SNIP

>  
> +static int process_system_event_tables(FILE *outfp)
> +{
> +     struct sys_event_table *sys_event_table;
> +
> +     fprintf(outfp, "struct pmu_sys_events pmu_sys_event_tables[] = {");
> +
> +     list_for_each_entry(sys_event_table, &sys_event_tables, list) {
> +             fprintf(outfp, "\n\t{\n\t\t.table = %s,\n\t},",
> +                     sys_event_table->name);
> +     }
> +     fprintf(outfp, "\n\t{\n\t\t.table = 0\n\t},");

this will add extra tabs:

        {
                .table = 0
        },

while the rest of the file starts items without any indent

jirka

Reply via email to