Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19972dd5 authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent faf6a2a4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -727,8 +727,10 @@ static int vbg_query_host_version(struct vbg_dev *gdev)

	rc = vbg_req_perform(gdev, req);
	ret = vbg_status_code_to_errno(rc);
	if (ret)
	if (ret) {
		vbg_err("%s error: %d\n", __func__, rc);
		goto out;
	}

	snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u",
		 req->major, req->minor, req->build, req->revision);