From c9acf0739f1dd4211744d94ce3fb33b4e4ffc900 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 18 Nov 2019 19:53:57 -0800 Subject: anv: Fix error message format string See also 246261f0addf Reviewed-by: Eric Engestrom CID: 1455892 Fixes: 246261f0add ("anv: prepare the driver for delayed submissions") --- src/intel/vulkan/anv_batch_chain.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 9180f908379..f58299b6760 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1687,11 +1687,8 @@ anv_queue_execbuf_locked(struct anv_queue *queue, int ret = queue->device->no_hw ? 0 : anv_gem_execbuffer(queue->device, &execbuf.execbuf); - if (ret) { - result = anv_queue_set_lost(queue, - "execbuf2 failed: %s", - strerror(ret)); - } + if (ret) + result = anv_queue_set_lost(queue, "execbuf2 failed: %m"); struct drm_i915_gem_exec_object2 *objects = execbuf.objects; for (uint32_t k = 0; k < execbuf.bo_count; k++) { -- cgit v1.2.3