From b330165c14cce30cc7e97b27bc113194ec4fdd9b Mon Sep 17 00:00:00 2001 From: Danny Serres Date: Thu, 9 Aug 2012 12:34:59 -0400 Subject: [PATCH] Fix: correct name of bt_ctf_field_get_error in comments and typo in man page Signed-off-by: Danny Serres Signed-off-by: Mathieu Desnoyers --- doc/babeltrace.1 | 2 +- formats/ctf/events.c | 2 +- include/babeltrace/ctf/events.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/babeltrace.1 b/doc/babeltrace.1 index db07cafa..db462f46 100644 --- a/doc/babeltrace.1 +++ b/doc/babeltrace.1 @@ -97,7 +97,7 @@ babeltrace-log(1), lttng(1), lttng-ust(3), lttng-sessiond(8) .SH "BUGS" .PP -No knows bugs at this point. +No known bugs at this point. If you encounter any issues or usability problem, please report it on our mailing list to help improve this diff --git a/formats/ctf/events.c b/formats/ctf/events.c index a8b08f65..5d92b087 100644 --- a/formats/ctf/events.c +++ b/formats/ctf/events.c @@ -34,7 +34,7 @@ /* * thread local storage to store the last error that occured * while reading a field, this variable must be accessed by - * bt_ctf_field_error only + * bt_ctf_field_get_error only */ __thread int bt_ctf_last_field_error = 0; diff --git a/include/babeltrace/ctf/events.h b/include/babeltrace/ctf/events.h index 4232feb3..2bf9c62d 100644 --- a/include/babeltrace/ctf/events.h +++ b/include/babeltrace/ctf/events.h @@ -182,7 +182,7 @@ int bt_ctf_get_array_len(const struct definition *field); * * If the field does not exist or is not of the type requested, the value * returned is undefined. To check if an error occured, use the - * bt_ctf_field_error() function after accessing a field. + * bt_ctf_field_get_error() function after accessing a field. */ uint64_t bt_ctf_get_uint64(const struct definition *field); int64_t bt_ctf_get_int64(const struct definition *field); @@ -190,7 +190,7 @@ char *bt_ctf_get_char_array(const struct definition *field); char *bt_ctf_get_string(const struct definition *field); /* - * bt_ctf_field_error: returns the last error code encountered while + * bt_ctf_field_get_error: returns the last error code encountered while * accessing a field and reset the error flag. * Return 0 if no error, a negative value otherwise. */ -- 2.34.1