diff mbox series

libtraceevent: Documentation: Correct typo in example

Message ID 20220823151541.151549-1-beanhuo@iokpp.de (mailing list archive)
State Accepted
Commit fd6efc928561a079c869541e3fc758e3753b1f77
Headers show
Series libtraceevent: Documentation: Correct typo in example | expand

Commit Message

Bean Huo Aug. 23, 2022, 3:15 p.m. UTC
From: Bean Huo <beanhuo@micron.com>

There is no struct tep_event_format, it should be struct tep_event. And
the first parameter in tep_find_event_by_record() should be tep, instead
of pevent.

Signed-off-by: Bean Huo <beanhuo@micron.com>
---
 Documentation/libtraceevent-field_get_val.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Steven Rostedt Sept. 8, 2022, 10:17 p.m. UTC | #1
On Tue, 23 Aug 2022 17:15:41 +0200
Bean Huo <beanhuo@iokpp.de> wrote:

> From: Bean Huo <beanhuo@micron.com>
> 
> There is no struct tep_event_format, it should be struct tep_event. And
> the first parameter in tep_find_event_by_record() should be tep, instead
> of pevent.
> 
> Signed-off-by: Bean Huo <beanhuo@micron.com>
> ---

Applied. Thanks Bean!

-- Steve
diff mbox series

Patch

diff --git a/Documentation/libtraceevent-field_get_val.txt b/Documentation/libtraceevent-field_get_val.txt
index 69d51bfc1020..6a5f1cd74f4d 100644
--- a/Documentation/libtraceevent-field_get_val.txt
+++ b/Documentation/libtraceevent-field_get_val.txt
@@ -64,10 +64,10 @@  void process_record(struct tep_record *record)
 {
 	int len;
 	char *comm;
-	struct tep_event_format *event;
+	struct tep_event *event;
 	unsigned long long val;
 
-	event = tep_find_event_by_record(pevent, record);
+	event = tep_find_event_by_record(tep, record);
 	if (event != NULL) {
 		if (tep_get_common_field_val(NULL, event, "common_type",
 					     record, &val, 0) == 0) {