]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ps3fb: do not print warnings on invalid frame numbers
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Tue, 16 Oct 2007 08:29:46 +0000 (01:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:21 +0000 (09:43 -0700)
Do not print warnings on invalid frame numbers, as this can be triggered from
user space.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/ps3fb.c

index eb8afc7ace03cb5f073031a7c44f197941231797..49069dba1b5d66171d046688603daf81e56c0947 100644 (file)
@@ -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;