Create stream files relative to a stream's current trace chunk
[lttng-tools.git] / src / bin / lttng / commands / rotate.c
index 7439f4fbe96e9eaef585810f62984b9061ab857c..e2a4c509ae6464ce04cd6c182fd789a9d02692d1 100644 (file)
@@ -193,6 +193,7 @@ static int rotate_tracing(char *session_name)
                rotation_status = lttng_rotation_handle_get_state(handle,
                                &rotation_state);
                if (rotation_status != LTTNG_ROTATION_STATUS_OK) {
+                       MSG("");
                        ERR("Failed to query the state of the rotation.");
                        goto error;
                }
@@ -200,14 +201,14 @@ static int rotate_tracing(char *session_name)
                if (rotation_state == LTTNG_ROTATION_STATE_ONGOING) {
                        ret = usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME);
                        if (ret) {
-                               PERROR("usleep");
+                               PERROR("\nusleep");
                                goto error;
                        }
                        _MSG(".");
 
                        ret = fflush(stdout);
                        if (ret) {
-                               PERROR("fflush");
+                               PERROR("\nfflush");
                                goto error;
                        }
                }
@@ -228,7 +229,6 @@ skip_wait:
                break;
        case LTTNG_ROTATION_STATE_ERROR:
                ERR("Failed to retrieve rotation state.");
-               print_location = false;
                goto error;
        case LTTNG_ROTATION_STATE_ONGOING:
                MSG("Rotation ongoing for session %s", session_name);
@@ -236,7 +236,6 @@ skip_wait:
                break;
        default:
                ERR("Unexpected rotation state encountered.");
-               print_location = false;
                goto error;
        }
 
This page took 0.024256 seconds and 4 git commands to generate.