[PATCH 2/3] libtracefs: Fix example in libtracefs-events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/libtracefs-events.txt b/Documentation/libtracefs-events.txt
index 3fe9199..102728d 100644
--- a/Documentation/libtracefs-events.txt
+++ b/Documentation/libtracefs-events.txt
@@ -122,7 +122,7 @@ static int records_walk(struct tep_event *tep, struct tep_record *record, int cp
 	return 0;
 }
 ...
-struct tep_event *tep = tracefs_local_events(NULL);
+struct tep_handle *tep = tracefs_local_events(NULL);
 
 	if (!tep) {
 		/* Failed to initialise tep handler with local events */
-- 
2.31.1




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux