Message ID | 262403b667d40185c71497e947fd59f4ed48e226.1627568431.git.bristot@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 8b870aa643bd2f59852d977989a600bdee04c92d |
Headers | show |
Series | libtracefs documentation fixes | expand |
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 */
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.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)