[lttng-dev] [Question] the return of babeltrace's bt_context_create

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Aug 21 08:05:32 EDT 2012


I will let Julien look into this,

Thanks,

Mathieu

* Hui Zhu (teawater at gmail.com) wrote:
> Hi,
> 
> The comments of this function said:
> Returns an allocated context on success and NULL on error
> 
> But when babeltrace use this function, it didn't check the return
> value of bt_context_create:
> 	ctx = bt_context_create();
> 
> 	ret = bt_context_add_traces_recursive(ctx, opt_input_path,
> 			opt_input_format, NULL);
> 
> Could you tell me why?  Thanks a lot.
> 
> Best,
> Hui
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list