API change for lttng_destroy_session prototype
[lttng-tools.git] / tests / lttng / kernel_event_basic.c
index 255557148ca8ff627e5677a7237dce23a353444e..d45b5e4f98cacc3abbfe2c8a97dcc2d44a06ba28 100644 (file)
@@ -160,7 +160,7 @@ int main(int argc, char **argv)
        PRINT_OK();
 
        printf("Destroy tracing session: ");
-       if ((ret = lttng_destroy_session(handle)) < 0) {
+       if ((ret = lttng_destroy_session(session_name)) < 0) {
                printf("error destroying session: %s\n", lttng_strerror(ret));
        }
        PRINT_OK();
@@ -175,7 +175,7 @@ handle_fail:
 stop_fail:
 start_fail:
 enable_fail:
-       lttng_destroy_session(handle);
+       lttng_destroy_session(session_name);
        lttng_destroy_handle(handle);
 
     return 1;
This page took 0.024052 seconds and 4 git commands to generate.