plugin-so: use list of components instead of glib hash table
[babeltrace.git] / lib / values.c
index 65f53ebc9eace7942283b1a6a682d43acaeeda4c..ea69643e4dff8d5dde51687e7d7885051957cec2 100644 (file)
@@ -566,7 +566,11 @@ bt_bool bt_value_is_frozen(const struct bt_value *object)
 enum bt_value_type bt_value_get_type(const struct bt_value *object)
 {
        if (!object) {
-               BT_LOGW_STR("Invalid parameter: value object is NULL.");
+               /*
+                * Not an error: user can test NULL value object with
+                * this function.
+                */
+               BT_LOGV_STR("Value object is NULL.");
                return BT_VALUE_TYPE_UNKNOWN;
        }
 
@@ -670,7 +674,7 @@ struct bt_value *bt_value_string_create_init(const char *val)
                goto end;
        }
 
-       BT_LOGD("Creating string value object: val-len=%lu", strlen(val));
+       BT_LOGD("Creating string value object: val-len=%zu", strlen(val));
        string_obj = g_new0(struct bt_value_string, 1);
 
        if (!string_obj) {
This page took 0.023198 seconds and 4 git commands to generate.