mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
c22961571a
commit
33546705b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue