From c6ec8ca1db45b407c9473ca4c67b3726b2735ef1 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Thu, 13 Jun 2024 18:54:21 -0500 Subject: [PATCH] Update controller.cpp (#932) * Update controller.cpp * Update controller.cpp * Formatting --- source/lib/rocprofiler-sdk/counters/controller.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/lib/rocprofiler-sdk/counters/controller.cpp b/source/lib/rocprofiler-sdk/counters/controller.cpp index 23ec15f613..b13b6b196f 100644 --- a/source/lib/rocprofiler-sdk/counters/controller.cpp +++ b/source/lib/rocprofiler-sdk/counters/controller.cpp @@ -93,10 +93,11 @@ CounterController::configure_agent_collection(rocprofiler_context_id_t } ctx.agent_counter_collection->agent_data.emplace_back(); - ctx.agent_counter_collection->agent_data.back().callback_data = {.ptr = user_data}; - ctx.agent_counter_collection->agent_data.back().agent_id = agent_id; - ctx.agent_counter_collection->agent_data.back().cb = cb; - ctx.agent_counter_collection->agent_data.back().buffer = buffer_id; + ctx.agent_counter_collection->agent_data.back().callback_data = + rocprofiler_user_data_t{.ptr = user_data}; + ctx.agent_counter_collection->agent_data.back().agent_id = agent_id; + ctx.agent_counter_collection->agent_data.back().cb = cb; + ctx.agent_counter_collection->agent_data.back().buffer = buffer_id; return ROCPROFILER_STATUS_SUCCESS; } @@ -187,4 +188,4 @@ get_profile_config(rocprofiler_profile_config_id_t id) } } } // namespace counters -} // namespace rocprofiler \ No newline at end of file +} // namespace rocprofiler