i915: change format in dbg string

Actually, uintptr_t is of type unsigned long, but the
debug line uses the %d format specifier, which expects an int.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Illia Abernikhin <illia.abernikhin@globallogic.com>

Found by Coverity.

CID: 1515961
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893>
This commit is contained in:
Illia Abernikhin 2023-01-15 15:48:00 +02:00 committed by Marge Bot
parent c22961571a
commit 33546705b5

View file

@ -506,7 +506,7 @@ i915_emit_hardware_state(struct i915_context *i915)
EMIT_ATOM(draw_rect, I915_HW_STATIC);
#undef EMIT_ATOM
I915_DBG(DBG_EMIT, "%s: used %d dwords, %d dwords reserved\n", __func__,
I915_DBG(DBG_EMIT, "%s: used %lu dwords, %d dwords reserved\n", __func__,
((uintptr_t)i915->batch->ptr - save_ptr) / 4, batch_space);
assert(((uintptr_t)i915->batch->ptr - save_ptr) / 4 == batch_space);