tracefs_local_events() returns struct tep_handle *, instead of struct tep_event *. Fix the example. Signed-off-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> --- Documentation/libtracefs-events-tep.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/libtracefs-events-tep.txt b/Documentation/libtracefs-events-tep.txt index 4c5cb21..752e830 100644 --- a/Documentation/libtracefs-events-tep.txt +++ b/Documentation/libtracefs-events-tep.txt @@ -73,7 +73,7 @@ EXAMPLE -- #include <tracefs.h> -struct tep_event *tep; +struct tep_handle *tep; ... tep = tracefs_local_events(NULL); if (!tep) { -- 2.31.1