From: compudj Date: Wed, 18 Oct 2006 13:34:39 +0000 (+0000) Subject: coding style X-Git-Tag: v0.12.20~1282 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=948f61b43ac28437741df6f9c8620be5023226c5;p=lttv.git coding style git-svn-id: http://ltt.polymtl.ca/svn@2207 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent/genevent.c b/genevent/genevent.c index 724dad00..c924efb3 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -723,7 +723,7 @@ int print_type_write(type_descriptor_t * td, FILE *fd, unsigned int tabs, fprintf(fd, ";\n"); fprintf(fd, "\n"); print_tabs(tabs, fd); - fprintf(fd, "if(*len == 0) {\n"); + fprintf(fd, "if (*len == 0) {\n"); print_tabs(tabs+1, fd); fprintf(fd, "*to += ltt_align(*to, align); /* align output */\n"); print_tabs(tabs, fd); @@ -1230,7 +1230,7 @@ int print_type_write_fct(type_descriptor_t * td, FILE *fd, unsigned int tabs, // print_tabs(1, fd); // fprintf(fd, "*to += ltt_align(*to, size);\n"); print_tabs(1, fd); - fprintf(fd, "if(buffer != NULL)\n"); + fprintf(fd, "if (buffer != NULL)\n"); print_tabs(2, fd); fprintf(fd, "memcpy(buffer+*to_base+*to, &obj->len, *len);\n"); print_tabs(1, fd); @@ -1565,7 +1565,7 @@ int print_event_logging_function(char *basename, facility_t *fac, fprintf(fd, "&before_hdr_pad, &after_hdr_pad, &header_size);\n"); /* If error, return */ print_tabs(2, fd); - fprintf(fd, "if(!buffer)\n"); + fprintf(fd, "if (!buffer)\n"); print_tabs(3, fd); fprintf(fd, "continue; /* buffer full */\n\n"); //print_tabs(2, fd);