From 9a8b8bf905f01308cade53e5419dc31198d0dcdb Mon Sep 17 00:00:00 2001 From: "Welton, Benjamin" Date: Wed, 15 Jan 2025 18:00:04 -0800 Subject: [PATCH] Small debug print fix in ioctl.cpp (#120) * Small debug print fix in ioctl.cpp Fix debug print statement to print agent id. * formatting --------- Co-authored-by: Jonathan R. Madsen [ROCm/rocprofiler-sdk commit: 71dc203b0c69ca667de3c4c3c13c373a030c2416] --- .../source/lib/rocprofiler-sdk/counters/ioctl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/ioctl.cpp b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/ioctl.cpp index 069a07f41e..61155d811c 100644 --- a/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/ioctl.cpp +++ b/projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/counters/ioctl.cpp @@ -68,7 +68,8 @@ counter_collection_device_lock(const rocprofiler_agent_t* agent, bool all_queues ROCP_WARNING << fmt::format( "Device {} could not be locked for profiling due to lack of permissions " "(capability SYS_PERFMON). PMC Counters may be inaccurate and System Counter " - "Collection will be degraded."); + "Collection will be degraded.", + agent->id.handle); return ROCPROFILER_STATUS_ERROR_PERMISSION_DENIED; case -EINVAL: ROCP_WARNING << fmt::format(