libxl: device_backend_callback() print rc on error

Print the rc when an error is found in device_backend_callback() so the
user can have some idea of why things went wrong.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Jason Andryuk authored and Andrew Cooper committed 2023-04-26 15:15:30 +01:00
1 parent 18a36b4a9b
commit ed70714236
1 file changed
+3 -2
+3 -2
View File
@@ -1160,9 +1160,10 @@ static void device_backend_callback(libxl__egc *egc, libxl__ev_devstate *ds,
}
if (rc) {
LOGD(ERROR, aodev->dev->domid, "unable to %s device with path %s",
LOGD(ERROR, aodev->dev->domid,
"unable to %s device with path %s - rc %d",
libxl__device_action_to_string(aodev->action),
libxl__device_backend_path(gc, aodev->dev));
libxl__device_backend_path(gc, aodev->dev), rc);
goto out;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.