[vpu]: add errno and error message print

Change-Id: I8502e3a743ac91edf5076405f706b432dbae0404
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
This commit is contained in:
timkingh.huang
2017-01-19 10:07:28 +08:00
committed by Herman Chen
parent 85e7a18a7d
commit 507abba33a

View File

@@ -113,7 +113,8 @@ int VPUClientInit(VPU_CLIENT_TYPE type)
mpp_env_get_u32("vpu_debug", &vpu_debug, 0);
if (fd == -1) {
mpp_err_f("failed to open %s\n", name);
mpp_err_f("failed to open %s, errno = %d, error msg: %s\n",
name, errno, strerror(errno));
return -1;
}
ret = ioctl(fd, VPU_IOC_SET_CLIENT_TYPE, (RK_U32)type);