criu/plugins
Tvrtko Ursulin 5c49f4e252
plugins/amdgpu: Fix remaining wrong usages of pr_perror
Mostly after calling libdrm functions pr_perror is wrong because calling
convention there is to return zero or negative error code - errno is not
guaranteed to be valid. So convert those to pr_err with manually calling
strerror to log user friendly messages. Same conversion for handling
errors from some plugin internal functions.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-By: David Francis <David.Francis@amd.com> # v1
Cc: Radostin Stoyanov <rstoyanov@fedoraproject.org>
---
v2:
 * Handle newly added pr_perror after amdgpu_device_initialize().
 * Add newlines.

v3:
 * Add some newlines to pr_err.
2026-07-21 13:40:21 +02:00
..
amdgpu plugins/amdgpu: Fix remaining wrong usages of pr_perror 2026-07-21 13:40:21 +02:00
cuda amdgpu: use fseeko with large-file support instead of fseeko64 2026-07-21 13:40:17 +02:00