From 6dea3d08b1e9453bfc51dfec827cf1a25c2729df Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 30 Jan 2024 13:27:51 +0100 Subject: [PATCH] vkd3d: Use debugstr_hresult() in d3d12_device_mark_as_removed(). --- libs/vkd3d/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 3f63e604..e45072b9 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -4473,8 +4473,8 @@ void d3d12_device_mark_as_removed(struct d3d12_device *device, HRESULT reason, va_list args; va_start(args, message); - WARN("Device %p is lost (reason %#x, \"%s\").\n", - device, reason, vkd3d_dbg_vsprintf(message, args)); + WARN("Device %p is lost (reason %s, \"%s\").\n", + device, debugstr_hresult(reason), vkd3d_dbg_vsprintf(message, args)); va_end(args); device->removed_reason = reason;