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;
}
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;
}
}
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);
break;
default:
ERR("Unexpected rotation state encountered.");
- print_location = false;
goto error;
}