From: compudj Date: Thu, 8 Dec 2005 04:40:15 +0000 (+0000) Subject: bugfix string and sequence X-Git-Tag: v0.12.20~2111 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=2a5eec7d52c459a33975f86ee6322c4c15d6360f;p=lttv.git bugfix string and sequence git-svn-id: http://ltt.polymtl.ca/svn@1378 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent-new/genevent.c b/genevent-new/genevent.c index 9c496deb..88cecb69 100644 --- a/genevent-new/genevent.c +++ b/genevent-new/genevent.c @@ -1198,7 +1198,7 @@ int print_type_write_fct(type_descriptor_t * td, FILE *fd, unsigned int tabs, print_tabs(1, fd); fprintf(fd, "/* Realign the *to_base on arch size, set *to to 0 */\n"); print_tabs(1, fd); - fprintf(fd, "*to = ltt_align(*to, sizeof(void *));\n"); + fprintf(fd, "*to += ltt_align(*to, sizeof(void *));\n"); print_tabs(1, fd); fprintf(fd, "*to_base = *to_base+*to;\n"); print_tabs(1, fd); @@ -1222,7 +1222,7 @@ int print_type_write_fct(type_descriptor_t * td, FILE *fd, unsigned int tabs, print_tabs(1, fd); fprintf(fd, "/* Realign the *to_base on arch size, set *to to 0 */\n"); print_tabs(1, fd); - fprintf(fd, "*to = ltt_align(*to, sizeof(void *));\n"); + fprintf(fd, "*to += ltt_align(*to, sizeof(void *));\n"); print_tabs(1, fd); fprintf(fd, "*to_base = *to_base+*to;\n"); print_tabs(1, fd); @@ -1497,6 +1497,7 @@ int print_event_logging_function(char *basename, facility_t *fac, fprintf(fd, "reserve_size, before_hdr_pad, tsc);\n"); print_tabs(2, fd); fprintf(fd, "*to_base += before_hdr_pad + after_hdr_pad + header_size;\n"); + fprintf(fd, "\n"); /* write data. */