X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Futil.c;h=49d39f0b183a2352899f7f838d3befac1ac3ddbf;hb=1eca514c6bc89f9359c3a1e2214e71d55d4700c1;hp=d5cc0a0ea9510c87736f361e96e387c9686bb097;hpb=d98421f2abfc5adab28ab7ee9b63537a6c7261cc;p=babeltrace.git diff --git a/src/lib/util.c b/src/lib/util.c index d5cc0a0e..49d39f0b 100644 --- a/src/lib/util.c +++ b/src/lib/util.c @@ -27,10 +27,13 @@ bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles, int ret; BT_ASSERT_PRE_NO_ERROR(); - BT_ASSERT_PRE_NON_NULL(ns, "Nanoseconds (output)"); - BT_ASSERT_PRE(frequency != UINT64_C(-1) && frequency != 0, + BT_ASSERT_PRE_NON_NULL("nanoseconds-output", ns, + "Nanoseconds (output)"); + BT_ASSERT_PRE("valid-frequency", + frequency != UINT64_C(-1) && frequency != 0, "Invalid frequency: freq=%" PRIu64, frequency); - BT_ASSERT_PRE(offset_cycles < frequency, + BT_ASSERT_PRE("offset-cycles-lt-frequency", + offset_cycles < frequency, "Offset (cycles) is greater than frequency: " "offset-cycles=%" PRIu64 ", freq=%" PRIu64, offset_cycles, frequency);