bt_value_get_type(): not a warning if value is NULL
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 31 May 2017 13:32:53 +0000 (09:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 20:58:13 +0000 (16:58 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/values.c

index 65f53ebc9eace7942283b1a6a682d43acaeeda4c..8ddbe7de55638cb2bfc7f6ad5d93fc751eacaaad 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;
        }
 
This page took 0.025166 seconds and 4 git commands to generate.