From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antonino Daplas Subject: [PATCH 02/15] ps3fb: Do not print warnings on invalid frame numbers Date: Sat, 13 Oct 2007 08:17:07 +0800 Message-ID: <47100E83.7020107@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1IgUxm-0005IB-Qa for linux-fbdev-devel@lists.sourceforge.net; Fri, 12 Oct 2007 17:34:42 -0700 Received: from rv-out-0910.google.com ([209.85.198.191]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1IgUxj-0002xt-8Z for linux-fbdev-devel@lists.sourceforge.net; Fri, 12 Oct 2007 17:34:40 -0700 Received: by rv-out-0910.google.com with SMTP id g11so3588679rvb for ; Fri, 12 Oct 2007 17:34:39 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Andrew Morton Cc: Geert Uytterhoeven , Linux Fbdev development list From: Geert Uytterhoeven ps3fb: Do not print warnings on invalid frame numbers, as this can be triggered from user space. Signed-off-by: Geert Uytterhoeven Signed-off-by: Antonino Daplas --- drivers/video/ps3fb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index eb8afc7..49069db 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -389,8 +389,8 @@ static int ps3fb_sync(struct fb_info *in 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; ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/