Skip to content

Commit 602e29f

Browse files
tzstoyanovacmel
authored andcommitted
libtraceevent: Fixed type in PRINT_FMT_STING
PRINT_FMT_STING -> PRINT_FMT_STRING Link: https://lore.kernel.org/r/CAM9d7cj1LJ=QO8QxhBo_oDM9APpAswX4BbTwge0JhZ3Y4-Bv9w@mail.gmail.com Link: https://lore.kernel.org/linux-trace-devel/[email protected] Link: https://lore.kernel.org/linux-trace-devel/[email protected] Suggested-by: Namhyung Kim <[email protected]> Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d339a19 commit 602e29f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/lib/traceevent/event-parse-local.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct tep_handle {
8686
};
8787

8888
enum tep_print_parse_type {
89-
PRINT_FMT_STING,
89+
PRINT_FMT_STRING,
9090
PRINT_FMT_ARG_DIGIT,
9191
PRINT_FMT_ARG_POINTER,
9292
PRINT_FMT_ARG_STRING,

tools/lib/traceevent/event-parse.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,7 +5613,7 @@ static int parse_arg_format(struct tep_print_parse **parse,
56135613
default:
56145614
snprintf(print_format, 32, ">%c<", *format);
56155615
parse_arg_add(parse, print_format,
5616-
PRINT_FMT_STING, NULL, NULL, 0);
5616+
PRINT_FMT_STRING, NULL, NULL, 0);
56175617
ret++;
56185618
return ret;
56195619
}
@@ -5665,7 +5665,7 @@ static int parse_arg_string(struct tep_print_parse **parse, const char *format)
56655665
ret++;
56665666
}
56675667
trace_seq_terminate(&s);
5668-
parse_arg_add(parse, s.buffer, PRINT_FMT_STING, NULL, NULL, 0);
5668+
parse_arg_add(parse, s.buffer, PRINT_FMT_STRING, NULL, NULL, 0);
56695669
trace_seq_destroy(&s);
56705670

56715671
return ret;
@@ -5723,7 +5723,7 @@ static void print_event_cache(struct tep_print_parse *parse, struct trace_seq *s
57235723
parse->len_as_arg ? len_arg : -1,
57245724
data, size, event, parse->arg);
57255725
break;
5726-
case PRINT_FMT_STING:
5726+
case PRINT_FMT_STRING:
57275727
default:
57285728
trace_seq_printf(s, "%s", parse->format);
57295729
break;

0 commit comments

Comments
 (0)