From: Philippe Proulx Date: Wed, 31 May 2017 13:32:53 +0000 (-0400) Subject: bt_value_get_type(): not a warning if value is NULL X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a0d100f8bc73f5ab88f989926ec51ce8b5980e79;p=deliverable%2Fbabeltrace.git bt_value_get_type(): not a warning if value is NULL Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/lib/values.c b/lib/values.c index 65f53ebc9..8ddbe7de5 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; }