[core,pointer] improve logging

This commit is contained in:
akallabeth 2022-11-18 10:16:12 +01:00 committed by akallabeth
parent 94072dc64a
commit 296fe9cfdb

View File

@ -280,7 +280,8 @@ rdpPointer* pointer_cache_get(rdpPointerCache* pointer_cache, UINT32 index)
if (index >= pointer_cache->cacheSize)
{
WLog_ERR(TAG, "invalid pointer index:%" PRIu32 "", index);
WLog_ERR(TAG, "invalid pointer index:%" PRIu32 " [%" PRIu32 "]", index,
pointer_cache->cacheSize);
return NULL;
}
@ -297,7 +298,8 @@ BOOL pointer_cache_put(rdpPointerCache* pointer_cache, UINT32 index, rdpPointer*
if (index >= pointer_cache->cacheSize)
{
WLog_ERR(TAG, "invalid pointer index:%" PRIu32 "", index);
WLog_ERR(TAG, "invalid pointer index:%" PRIu32 " [%" PRIu32 "]", index,
pointer_cache->cacheSize);
return FALSE;
}