X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Frotation-thread.cpp;fp=src%2Fbin%2Flttng-sessiond%2Frotation-thread.cpp;h=1d62c851ee3b57038d35d692363d3998b3f1d4ff;hp=10afaa649770139abd7d359fcb37c7114f79d0bf;hb=f9a4135756da1947c2aa00e5b1e3c8e572d02107;hpb=d5ed3e6f3a8b52d7f2a3e2277873e0f1914ba515 diff --git a/src/bin/lttng-sessiond/rotation-thread.cpp b/src/bin/lttng-sessiond/rotation-thread.cpp index 10afaa649..1d62c851e 100644 --- a/src/bin/lttng-sessiond/rotation-thread.cpp +++ b/src/bin/lttng-sessiond/rotation-thread.cpp @@ -752,8 +752,8 @@ void ls::rotation_thread::_run() DBG_FMT("Handling descriptor activity: fd={}, events={:b}", fd, revents); if (revents & LPOLLERR) { - LTTNG_THROW_ERROR( - fmt::format("Polling returned an error on fd: fd={}", fd)); + LTTNG_THROW_ERROR(lttng::format( + "Polling returned an error on fd: fd={}", fd)); } if (fd == _notification_channel->socket || @@ -789,7 +789,7 @@ void ls::rotation_thread::_run() if (lttng_read(fd, &buf, 1) != 1) { LTTNG_THROW_POSIX( - fmt::format( + lttng::format( "Failed to read from wakeup pipe: fd={}", fd), errno); @@ -849,14 +849,14 @@ void ls::rotation_thread::subscribe_session_consumed_size_rotation(ltt_session& auto condition_status = lttng_condition_session_consumed_size_set_threshold(rotate_condition.get(), size); if (condition_status != LTTNG_CONDITION_STATUS_OK) { - LTTNG_THROW_ERROR(fmt::format( + LTTNG_THROW_ERROR(lttng::format( "Could not set session consumed size condition threshold: size={}", size)); } condition_status = lttng_condition_session_consumed_size_set_session_name( rotate_condition.get(), session.name); if (condition_status != LTTNG_CONDITION_STATUS_OK) { - LTTNG_THROW_ERROR(fmt::format( + LTTNG_THROW_ERROR(lttng::format( "Could not set session consumed size condition session name: name=`{}`", session.name)); } @@ -895,7 +895,7 @@ void ls::rotation_thread::subscribe_session_consumed_size_rotation(ltt_session& &_notification_thread_handle, trigger.get(), true); if (register_ret != LTTNG_OK) { LTTNG_THROW_CTL( - fmt::format( + lttng::format( "Failed to register trigger for automatic size-based rotation: session_name{}, size={}", session.name, size), @@ -919,7 +919,7 @@ void ls::rotation_thread::unsubscribe_session_consumed_size_rotation(ltt_session _notification_channel.get(), lttng_trigger_get_const_condition(session.rotate_trigger)); if (unsubscribe_status != LTTNG_NOTIFICATION_CHANNEL_STATUS_OK) { - LTTNG_THROW_ERROR(fmt::format( + LTTNG_THROW_ERROR(lttng::format( "Failed to unsubscribe from consumed size condition used to control automatic size-based rotations: session_name=`{}` return_code={}", session.name, static_cast(unsubscribe_status))); @@ -935,7 +935,7 @@ void ls::rotation_thread::unsubscribe_session_consumed_size_rotation(ltt_session &_notification_thread_handle, session.rotate_trigger); if (unregister_status != LTTNG_OK) { LTTNG_THROW_CTL( - fmt::format( + lttng::format( "Failed to unregister trigger for automatic size-based rotation: session_name{}", session.name), unregister_status);