From: compudj Date: Wed, 6 Aug 2008 20:24:29 +0000 (+0000) Subject: fix fmt string X-Git-Tag: v0.12.20~500 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=8d2ebd3dca3e7d06dffd8293a46ff9c95b0b1c9a;hp=4d6834281bad653e0fbd08830a7010383f2f66e8;p=lttv.git fix fmt string git-svn-id: http://ltt.polymtl.ca/svn@2989 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/lttv/ltt/marker.c b/trunk/lttv/ltt/marker.c index 5933b1b6..d60416e3 100644 --- a/trunk/lttv/ltt/marker.c +++ b/trunk/lttv/ltt/marker.c @@ -62,7 +62,7 @@ static inline const char *parse_trace_type(struct marker_info *info, if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt =='Z' || *fmt == 'z' || *fmt == 't' || *fmt == 'S' || *fmt == '1' || *fmt == '2' || - *fmt == '4' || *fmt == 8) { + *fmt == '4' || *fmt == '8') { qualifier = *fmt; ++fmt; if (qualifier == 'l' && *fmt == 'l') { @@ -172,7 +172,6 @@ static inline const char *parse_c_type(struct marker_info *info, ++fmt; if (qualifier == 'l' && *fmt == 'l') { qualifier = 'L'; - g_string_append_c(field_fmt, *fmt); ++fmt; } } @@ -379,7 +378,6 @@ static void format_parse(const char *fmt, struct marker_info *info) offset = add_type(info, offset, name, trace_size, trace_type, c_size, c_type, attributes, field_count++, field_fmt); - g_string_truncate(field_fmt, 0); trace_size = c_size = 0; trace_type = c_size = LTT_TYPE_NONE; g_string_truncate(field_fmt, 0);