diff mbox series

[1/3] libtracefs: Fix example in libtracefs-events-tep

Message ID ad158f53e20404967e920e44cc855dbb9c335d32.1627568431.git.bristot@kernel.org (mailing list archive)
State Accepted
Commit 42c8156f54825b282f266cff4f74bc5a26ebe30f
Headers show
Series libtracefs documentation fixes | expand

Commit Message

Daniel Bristot de Oliveira July 29, 2021, 2:50 p.m. UTC
tracefs_local_events() returns struct tep_handle *, instead of
struct tep_event *. Fix the example.

Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
---
 Documentation/libtracefs-events-tep.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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) {