X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fvalues.c;h=ea69643e4dff8d5dde51687e7d7885051957cec2;hb=4581096d7c66be8cb9dcba9c48aa458583f4de4a;hp=65f53ebc9eace7942283b1a6a682d43acaeeda4c;hpb=32e87cebe6d26aefcff30cf542fb11f33a3ed7ea;p=babeltrace.git diff --git a/lib/values.c b/lib/values.c index 65f53ebc..ea69643e 100644 --- a/lib/values.c +++ b/lib/values.c @@ -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) {