aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-03-25 15:55:19 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-03-25 15:55:19 -0400
commit1cf7aaf41c22fb8fba92e5d77b5c3dee0eae83bf (patch)
tree0fc41bea908faef1d952897cb4b9c36b409655e5
parent414a5cd0e5d9d6a4ac5953ac7e961c3d569606d1 (diff)
parse-events: Fix dynamic flag setting
The dynamic flag was not being set because the compare in the field type was looking for an exact match of "__data_loc", when in reality, the field type also contained the array type as well (ie. "__data_loc int"). Just check the first 10 characters of the type. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--parse-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-events.c b/parse-events.c
index 746187e..b2941c3 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -1140,7 +1140,7 @@ static int field_is_string(struct format_field *field)
1140 1140
1141static int field_is_dynamic(struct format_field *field) 1141static int field_is_dynamic(struct format_field *field)
1142{ 1142{
1143 if (!strcmp(field->type, "__data_loc")) 1143 if (strncmp(field->type, "__data_loc", 10) == 0)
1144 return 1; 1144 return 1;
1145 1145
1146 return 0; 1146 return 0;