diff options
author | Illia Abernikhin <illia.abernikhin@globallogic.com> | 2023-01-15 15:48:00 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-07-25 08:55:56 +0000 |
commit | 33546705b531e4f9f6ea91d54797c432d4f7f754 (patch) | |
tree | fd8e973b9b4d24e5d6f94d31cdcb41a8a41346e1 /src/gallium/drivers/i915 | |
parent | c22961571ae42b0ee9340c7d8c61fe0fc3bf7fc4 (diff) |
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>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_state_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index e48dd317597..5b2d19c0786 100644 --- a/src/gallium/drivers/i915/i915_state_emit.c +++ b/src/gallium/drivers/i915/i915_state_emit.c @@ -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); |