From: David Goulet Date: Mon, 21 Jan 2013 17:03:55 +0000 (-0500) Subject: Move stream name creation to fct create_ust_stream X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=7f13370536e1ad64db733423b542755c97160f4d;hp=7f13370536e1ad64db733423b542755c97160f4d;p=lttng-tools.git Move stream name creation to fct create_ust_stream This is for two reasons. First, to avoid for the caller to create the stream name. Second, on snprintf() error, we can't continue so put back the reserved FDs and return an error. We do that name creation now *before* the stream is created on the application side so we don't have to release that object on error. Only after that the stream is added to the list and the channel count updated. This makes more sense and better handle the error path. Also, this patch removes a XXX: statement which are always not cool on production software :). Signed-off-by: David Goulet ---