* [PATCH] libtraceevent: Clean up tep_parse_printk_formats() variables
@ 2021-04-12 19:52 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2021-04-12 19:52 UTC (permalink / raw)
To: Linux Trace Devel
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
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.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
src/event-parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/event-parse.c b/src/event-parse.c
index 8d1ac65..732987a 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 *addr_str;
char *copy;
char *printk;
char *line;
- char *next = NULL;
- char *addr_str;
+ char *next;
char *fmt;
int ret = -1;
--
2.29.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-12 19:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 19:52 [PATCH] libtraceevent: Clean up tep_parse_printk_formats() variables Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.