Skip to contentSkip to conversation

Fix: correct name of bt_ctf_field_get_error in comments and typo in man page

PATCH Mathieu Desnoyers 1 participant 1 message Aug 9, 2012 1 message not in the archive

lore
Share & tools
lore

Mathieu Desnoyers

author Applied
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · * Danny Serres ([email protected]) wrote:

merged, thanks !

Mathieu

Quoted 62 lines
---
 doc/babeltrace.1                |    2 +-
 formats/ctf/events.c            |    2 +-
 include/babeltrace/ctf/events.h |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
doc/babeltrace.1 +1 -1
index db07caf..db462f4 100644
@@ -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 <[email protected]> to help improve this
formats/ctf/events.c +1 -1
index a8b08f6..5d92b08 100644
@@ -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;
 
include/babeltrace/ctf/events.h +2 -2
index 4232feb..2bf9c62 100644
@@ -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.
  */
Signature · 7 lines
1.7.9.5


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com