[PATCH 01/25] plugins/amgdpu: Fix one error message
Tvrtko Ursulin <[email protected]> Wed, 11 Mar 2026 09:58:50 +0000
| 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 3520bca7a317..e2fe4bd8a823 100644 --- a/plugins/amdgpu/amdgpu_plugin_drm.c +++ b/plugins/amdgpu/amdgpu_plugin_drm.c @@ -416,7 +416,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