Skip to content

Commit

Permalink
Add debug message to umfMemoryTrackerRemove()
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dorau <[email protected]>
  • Loading branch information
ldorau committed Oct 15, 2024
1 parent 673b844 commit b613ed4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/provider/provider_tracking.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ static umf_result_t umfMemoryTrackerRemove(umf_memory_tracker_handle_t hTracker,
return UMF_RESULT_ERROR_UNKNOWN;
}

tracker_value_t *v = value;

LOG_DEBUG("memory region removed: tracker=%p, ptr=%p, size=%zu",
(void *)hTracker, ptr, v->size);

umf_ba_free(hTracker->tracker_allocator, value);

return UMF_RESULT_SUCCESS;
Expand Down

0 comments on commit b613ed4

Please sign in to comment.