anv: Convert DEBUG_HEAPS logging to use mesa_log
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Replace fprintf with the mesa_log API.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38171>
This commit is contained in:
Christian Gmeiner 2025-10-30 10:28:19 +01:00 committed by Marge Bot
parent 5e380ca7e5
commit 3c7fa2e6eb

View file

@ -44,9 +44,9 @@ va_at(struct anv_va_range *range, uint64_t addr, uint64_t size)
static void
anv_device_print_vas(struct anv_physical_device *device)
{
fprintf(stderr, "Driver heaps:\n");
mesa_logi("Driver heaps:\n");
#define PRINT_HEAP(name) \
fprintf(stderr, " 0x%016"PRIx64"-0x%016"PRIx64": %s\n", \
mesa_logi(" 0x%016"PRIx64"-0x%016"PRIx64": %s\n", \
device->va.name.addr, \
device->va.name.addr + device->va.name.size, \
#name);