mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-03 01:33:35 +08:00
[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:
committed by
Herman Chen
parent
85e7a18a7d
commit
507abba33a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user