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

Commit 4cf196eb authored by Chuanxiao Dong's avatar Chuanxiao Dong Committed by Zhenyu Wang
Browse files

drm/i915/gvt: Use gvt_err to print the resource not enough error



It is better to use gvt_err when the gvt resource is not enough so
the user can be notified from the kernel dmesg. And this kind of
error message is gvt related.

Suggested-by: default avatarBing Niu <bing.niu@intel.com>
Signed-off-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Bing Niu <bing.niu@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent d0604a24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -285,8 +285,8 @@ static int alloc_resource(struct intel_vgpu *vgpu,
	return 0;

no_enough_resource:
	gvt_vgpu_err("fail to allocate resource %s\n", item);
	gvt_vgpu_err("request %luMB avail %luMB max %luMB taken %luMB\n",
	gvt_err("fail to allocate resource %s\n", item);
	gvt_err("request %luMB avail %luMB max %luMB taken %luMB\n",
		BYTES_TO_MB(request), BYTES_TO_MB(avail),
		BYTES_TO_MB(max), BYTES_TO_MB(taken));
	return -ENOSPC;