[PATCH v2 01/23] plugins/amgdpu: Fix one error message

Tvrtko Ursulin <[email protected]> Fri, 10 Apr 2026 19:54:52 +0100
Newsgroups dev.linux.lists.criu
Message-ID <[email protected]>
Instead of logging a zero failure code lets log the actual GPU id which
was not found.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Reviewed-By: David Francis <[email protected]>
---
 plugins/amdgpu/amdgpu_plugin_drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/amdgpu/amdgpu_plugin_drm.c b/plugins/amdgpu/amdgpu_plugin_drm.c
index c1dfb2dd4543..c51e43eaf491 100644
--- a/plugins/amdgpu/amdgpu_plugin_drm.c
+++ b/plugins/amdgpu/amdgpu_plugin_drm.c
@@ -470,7 +470,7 @@ int amdgpu_plugin_drm_dump_file(int fd, int id, struct stat *drm)
 	/* Get the GPU_ID of the DRM device */
 	rd->gpu_id = maps_get_dest_gpu(&checkpoint_maps, tp_node->gpu_id);
 	if (!rd->gpu_id) {
-		pr_err("Failed to find valid gpu_id for the device = %d\n", rd->gpu_id);
+		pr_err("Failed to find valid gpu_id for the device = %d\n", tp_node->gpu_id);
 		return -ENODEV;
 	}
 
-- 
2.52.0