From 0138bd841ea2d713cf883c67684c40ce26ba319a Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Tue, 16 Oct 2007 01:29:46 -0700 Subject: ps3fb: do not print warnings on invalid frame numbers Do not print warnings on invalid frame numbers, as this can be triggered from user space. Signed-off-by: Geert Uytterhoeven Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/ps3fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index eb8afc7ace0..49069dba1b5 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -389,8 +389,8 @@ static int ps3fb_sync(struct fb_info *info, u32 frame) yres = ps3fb_res[i].yres; if (frame > ps3fb.num_frames - 1) { - dev_warn(info->device, "%s: invalid frame number (%u)\n", - __func__, frame); + dev_dbg(info->device, "%s: invalid frame number (%u)\n", + __func__, frame); return -EINVAL; } offset = xres * yres * BPP * frame; -- cgit v1.2.3-70-g09d2