v4l2-compat-ioctl32: replace pr_warn by pr_debug
PATCH 1/1 v4l2-compat-ioctl32: replace pr_warn by pr_debug
Every time compat32 encounters an unknown ioctl it will call pr_warn. However, that's very irritating since it is perfectly normal that this happens. For example, applications often try to call an ioctl to see if it exists, and if that's used with an older kernel where compat32 doesn't support that ioctl yet, then it starts spamming the kernel log.
So replace pr_warn by pr_debug.
--- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +2 -2
@@ -1033,8 +1033,8 @@ long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) ret = vdev->fops->compat_ioctl32 (file, cmd, arg);if (ret == -ENOIOCTLCMD ) -pr_warn ("compat_ioctl32: unknown ioctl '%c', dir=%d, #%d (0x%08x)\n" , -_IOC_TYPE (cmd),_IOC_DIR (cmd),_IOC_NR (cmd), cmd); +pr_debug ("compat_ioctl32: unknown ioctl '%c', dir=%d, #%d (0x%08x)\n" , +_IOC_TYPE (cmd),_IOC_DIR (cmd),_IOC_NR (cmd), cmd);return ret; }EXPORT_SYMBOL_GPL (v4l2_compat_ioctl32);
Signature · 1 line
2.1.4
Quoted 18 lines · Hans Verkuil
Every time compat32 encounters an unknown ioctl it will call
pr_warn. However, that's very irritating since it is perfectly normal that this happens. For example, applications often try to call an ioctl to see if it exists, and if that's used with an older kernel where compat32 doesn't support that ioctl yet, then it starts spamming the kernel log.So replace
pr_warnbypr_debug.Signed-off-by Hans Verkuil <[email protected]>--- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/media/v4l2-core/v4l2-compat-ioctl32.c +0
-0
drivers/media/v4l2-core/v4l2-compat-ioctl32.c long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) · line 1040
Quoted 10 lines
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +2
-2@@ -1033,8 +1033,8 @@ long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) ret = vdev->fops->compat_ioctl32 (file, cmd, arg);if (ret == -ENOIOCTLCMD ) -pr_warn ("compat_ioctl32: unknown ioctl '%c', dir=%d, #%d (0x%08x)\n" , -_IOC_TYPE (cmd),_IOC_DIR (cmd),_IOC_NR (cmd), cmd); +pr_debug ("compat_ioctl32: unknown ioctl '%c', dir=%d, #%d (0x%08x)\n" , +_IOC_TYPE (cmd),_IOC_DIR (cmd),_IOC_NR (cmd), cmd);return ret; }EXPORT_SYMBOL_GPL (v4l2_compat_ioctl32);
Signature · 2 lines
Sakari Ailus e-mail: [email protected] XMPP: [email protected]