Message ID | 20211122234956.788401-3-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 13fd3f59c1961caee612ee172b68afd9b841ae06 |
Headers | show |
Series | libtracefs: Have all man page examples be executable | expand |
diff --git a/Documentation/libtracefs-dynevents.txt b/Documentation/libtracefs-dynevents.txt index 25172c3..503bd7e 100644 --- a/Documentation/libtracefs-dynevents.txt +++ b/Documentation/libtracefs-dynevents.txt @@ -182,7 +182,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);