anv: fix error message
`strerror()` takes an `errno`, not the negative value returned by the
`ioctl()`.
Instead of fixing this as `"%s", strerror(errno)`, let's just use the
`"%m"` shortcut for it.
Fixes: 2b5f30b1d9
("anv: implement VK_INTEL_performance_query")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:

committed by
Eric Engestrom

parent
8d43e2b2de
commit
47571a01ec
@@ -202,11 +202,8 @@ VkResult anv_QueueSetPerformanceConfigurationINTEL(
|
||||
} else {
|
||||
int ret = gen_ioctl(device->perf_fd, I915_PERF_IOCTL_CONFIG,
|
||||
(void *)(uintptr_t) _configuration);
|
||||
if (ret < 0) {
|
||||
return anv_device_set_lost(device,
|
||||
"i915-perf config failed: %s",
|
||||
strerror(ret));
|
||||
}
|
||||
if (ret < 0)
|
||||
return anv_device_set_lost(device, "i915-perf config failed: %m");
|
||||
}
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
Reference in New Issue
Block a user