lkml.org 
[lkml]   [2020]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC v3 02/12] perf jevents: Add support for system events tables
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

\
 
 \ /
  Last update: 2020-05-11 13:03    [W:0.156 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site