Fix: CTF writer: bt_ctf_field_unsigned_integer_set_value() -> *get_value()
[babeltrace.git] / src / ctf-writer / attributes.c
index e79dc58f1d3d34158d757448c058dec3cd7dd96e..ba4711293132ce38bef407a0ebff847bbe57dc60 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "CTF-WRITER-ATTRS"
+#define BT_LOG_TAG "CTF-WRITER/ATTRS"
 #include "logging.h"
 
 #include "common/assert.h"
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include "compat/string.h"
-#include <babeltrace2/ctf-writer/object.h>
+#include <babeltrace2-ctf-writer/object.h>
 #include <inttypes.h>
 
 #include "values.h"
@@ -205,7 +205,7 @@ struct bt_ctf_private_value *bt_ctf_attributes_borrow_field_by_name(
                field_name = bt_ctf_value_string_get(
                        bt_ctf_private_value_as_value(attr_field_name_obj));
 
-               if (!strcmp(field_name, name)) {
+               if (strcmp(field_name, name) == 0) {
                        break;
                }
 
This page took 0.024489 seconds and 4 git commands to generate.