use .error_ident() for resource logging

This commit is contained in:
teoxoy 2024-06-20 18:45:07 +02:00 committed by Teodor Tanasoaia
parent eeb57e1cee
commit d30c02ffa3
3 changed files with 12 additions and 12 deletions

View File

@ -304,8 +304,8 @@ impl<A: HalApi> ResourceTracker for BufferTracker<A> {
//so it's already been released from user and so it's not inside Registry\Storage
if existing_ref_count <= 2 {
resource_log!(
"BufferTracker::remove_abandoned: removing {:?}",
self.metadata.get_resource_unchecked(index).as_info().id()
"BufferTracker::remove_abandoned: removing {}",
self.metadata.get_resource_unchecked(index).error_ident()
);
self.metadata.remove(index);
@ -313,8 +313,8 @@ impl<A: HalApi> ResourceTracker for BufferTracker<A> {
}
resource_log!(
"BufferTracker::remove_abandoned: not removing {:?}, ref count {}",
self.metadata.get_resource_unchecked(index).as_info().id(),
"BufferTracker::remove_abandoned: not removing {}, ref count {}",
self.metadata.get_resource_unchecked(index).error_ident(),
existing_ref_count
);

View File

@ -86,9 +86,9 @@ impl<T: Resource> ResourceTracker for StatelessTracker<T> {
//so it's already been released from user and so it's not inside Registry\Storage
if existing_ref_count <= 2 {
resource_log!(
"StatelessTracker<{}>::remove_abandoned: removing {:?}",
"StatelessTracker<{}>::remove_abandoned: removing {}",
T::TYPE,
self.metadata.get_resource_unchecked(index).as_info().id()
self.metadata.get_resource_unchecked(index).error_ident()
);
self.metadata.remove(index);
@ -96,9 +96,9 @@ impl<T: Resource> ResourceTracker for StatelessTracker<T> {
}
resource_log!(
"StatelessTracker<{}>::remove_abandoned: not removing {:?}, ref count {}",
"StatelessTracker<{}>::remove_abandoned: not removing {}, ref count {}",
T::TYPE,
self.metadata.get_resource_unchecked(index).as_info().id(),
self.metadata.get_resource_unchecked(index).error_ident(),
existing_ref_count
);

View File

@ -428,8 +428,8 @@ impl<A: HalApi> ResourceTracker for TextureTracker<A> {
//so it's already been released from user and so it's not inside Registry\Storage
if existing_ref_count <= 2 {
resource_log!(
"TextureTracker::remove_abandoned: removing {:?}",
self.metadata.get_resource_unchecked(index).as_info().id()
"TextureTracker::remove_abandoned: removing {}",
self.metadata.get_resource_unchecked(index).error_ident()
);
self.start_set.complex.remove(&index);
@ -439,8 +439,8 @@ impl<A: HalApi> ResourceTracker for TextureTracker<A> {
}
resource_log!(
"TextureTracker::remove_abandoned: not removing {:?}, ref count {}",
self.metadata.get_resource_unchecked(index).as_info().id(),
"TextureTracker::remove_abandoned: not removing {}, ref count {}",
self.metadata.get_resource_unchecked(index).error_ident(),
existing_ref_count
);