X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Ftext%2Fdetails%2Fwrite.c;h=3ea4d41c97fbdbaf38ec42f20fdbcc678ad6417c;hp=3601d45ce9f698038dafa17a3fe71b1ed41dd70f;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hpb=15caa1ca4fac30bd196602bd136e48fda3892de2 diff --git a/src/plugins/text/details/write.c b/src/plugins/text/details/write.c index 3601d45c..3ea4d41c 100644 --- a/src/plugins/text/details/write.c +++ b/src/plugins/text/details/write.c @@ -1385,7 +1385,7 @@ end: static void write_time(struct details_write_ctx *ctx, const bt_clock_snapshot *cs) { - bt_clock_snapshot_status status; + bt_clock_snapshot_get_ns_from_origin_status cs_status; int64_t ns_from_origin; char buf[32]; @@ -1398,8 +1398,8 @@ void write_time(struct details_write_ctx *ctx, const bt_clock_snapshot *cs) color_bold(ctx), color_fg_blue(ctx), buf, color_reset(ctx), ctx->details_comp->cfg.compact ? "" : " cycles"); - status = bt_clock_snapshot_get_ns_from_origin(cs, &ns_from_origin); - if (status == BT_CLOCK_SNAPSHOT_STATUS_OK) { + cs_status = bt_clock_snapshot_get_ns_from_origin(cs, &ns_from_origin); + if (cs_status == BT_CLOCK_SNAPSHOT_GET_NS_FROM_ORIGIN_STATUS_OK) { format_int(buf, ns_from_origin, 10); g_string_append_printf(ctx->str, "%s %s%s%s%s%s", ctx->details_comp->cfg.compact ? "" : ",",