mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
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. |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||