diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-04-12 15:52:01 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-04-13 11:52:19 -0400 |
commit | 9dbc55b41e1f90d3f0b635c7e1930d593dd797e3 (patch) | |
tree | 8fcdc4da95d7b618e7797b1069525547d042499c | |
parent | 7b4b50dd635eaa59ea8077d5e922c2256c262004 (diff) | |
download | libtraceevent-9dbc55b41e1f90d3f0b635c7e1930d593dd797e3.tar.gz |
libtraceevent: Clean up tep_parse_printk_formats() variables
Just a simply clean up of the tep_parse_printk_formats().
Had done some debugging in this section, but found the bug elsewhere, but in
the mean time, I had rearranged the variables, and removed the unneeded
setting of "next" with NULL.
Link: https://lore.kernel.org/linux-trace-devel/20210412155201.16c9f0a2@gandalf.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | src/event-parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event-parse.c b/src/event-parse.c index 8d1ac65..88ec909 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -931,11 +931,11 @@ void tep_print_printk(struct tep_handle *tep) int tep_parse_printk_formats(struct tep_handle *tep, const char *buf) { unsigned long long addr; - char *copy; + char *addr_str; char *printk; + char *copy; char *line; - char *next = NULL; - char *addr_str; + char *next; char *fmt; int ret = -1; |