Add debug statement to the teardown session
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 23 Nov 2011 17:49:23 +0000 (12:49 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 23 Nov 2011 17:49:23 +0000 (12:49 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/main.c

index bc745487b97f0a690ccaadf2ec137a7851ca4ff0..dc71e0eaea851990e8982f7152f5bd043733cdaa 100644 (file)
@@ -335,8 +335,11 @@ error:
  */
 static void teardown_kernel_session(struct ltt_session *session)
 {
-       if (!session->kernel_session)
+       if (!session->kernel_session) {
+               DBG3("No kernel session when tearingdown session");
                return;
+       }
+
        DBG("Tearing down kernel session");
 
        /*
@@ -358,13 +361,18 @@ static void teardown_ust_session(struct ltt_session *session)
 {
        int ret;
 
-       if (!session->ust_session)
+       if (!session->ust_session) {
+               DBG3("No UST session when tearingdown session");
                return;
+       }
+
        DBG("Tearing down UST session(s)");
+
        ret = ust_app_destroy_trace_all(session->ust_session);
        if (ret) {
                ERR("Error in ust_app_destroy_trace_all");
        }
+
        trace_ust_destroy_session(session->ust_session);
 }
 
This page took 0.028744 seconds and 4 git commands to generate.