media: mediatek: vcodec: Improve an error message
This is intended to print the error code but there is a typo so it prints IS_ERR() instead of PTR_ERR(). Fixes: 77f3b023f452 ("media: mediatek: vcodec: Add debugfs interface to get debug information") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
b19c347b12
commit
251301e283
@ -185,8 +185,8 @@ void mtk_vcodec_dbgfs_init(struct mtk_vcodec_dev *vcodec_dev, bool is_encode)
|
||||
else
|
||||
vcodec_dev->dbgfs.vcodec_root = debugfs_create_dir("vcodec-dec", NULL);
|
||||
if (IS_ERR(vcodec_dev->dbgfs.vcodec_root))
|
||||
dev_err(&vcodec_dev->plat_dev->dev, "create vcodec dir err:%d\n",
|
||||
IS_ERR(vcodec_dev->dbgfs.vcodec_root));
|
||||
dev_err(&vcodec_dev->plat_dev->dev, "create vcodec dir err:%ld\n",
|
||||
PTR_ERR(vcodec_dev->dbgfs.vcodec_root));
|
||||
|
||||
vcodec_root = vcodec_dev->dbgfs.vcodec_root;
|
||||
debugfs_create_x32("mtk_v4l2_dbg_level", 0644, vcodec_root, &mtk_v4l2_dbg_level);
|
||||
|
Loading…
Reference in New Issue
Block a user