libtracefs: Fix example in the dynamic events man page to compile
PATCH 1/1 libtracefs: Fix example in the dynamic events man page to compile
From: "Steven Rostedt (VMware)" <[email protected]>
The example in the dynamic events man page fails to compile because it references an "err" variable without declaring it. Declare it so that the example will compile.
Signed-off-by Steven Rostedt (VMware) <[email protected]>
--- Documentation/libtracefs-dynevents.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/libtracefs-dynevents.txt +1 -1
@@ -184,7 +184,7 @@ int main (int argc, char **argv, char **env) } if (tracefs_dynevent_create(kprobe) || tracefs_dynevent_create(kretprobe)){ - err = tracefs_error_last(NULL); + char *err = tracefs_error_last(NULL); perror("Failed to create kprobes:"); if (err && strlen(err)) fprintf(stderr, "%s\n", err);
Signature · 1 line
2.31.1