virt: vbox: Log an error when we fail to get the host version
This was the only error path during probe without a message being logged about what went wrong, this fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
faf6a2a441
commit
19972dd568
1 changed files with 3 additions and 1 deletions
|
@ -727,8 +727,10 @@ static int vbg_query_host_version(struct vbg_dev *gdev)
|
||||||
|
|
||||||
rc = vbg_req_perform(gdev, req);
|
rc = vbg_req_perform(gdev, req);
|
||||||
ret = vbg_status_code_to_errno(rc);
|
ret = vbg_status_code_to_errno(rc);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
vbg_err("%s error: %d\n", __func__, rc);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u",
|
snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u",
|
||||||
req->major, req->minor, req->build, req->revision);
|
req->major, req->minor, req->build, req->revision);
|
||||||
|
|
Loading…
Add table
Reference in a new issue