From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-Id: <20071008161614.158499000@pademelon.sonytel.be> References: <20071008161421.818458000@pademelon.sonytel.be> Date: Mon, 08 Oct 2007 18:14:23 +0200 From: Geert Uytterhoeven To: "Antonino A. Daplas" , linux-fbdev-devel@lists.sourceforge.net Subject: [patch 2/9] ps3fb: Do not print warnings on invalid frame numbers Sender: Geert Uytterhoeven Cc: Geert Uytterhoeven , linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- drivers/video/ps3fb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- 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; -- With kind regards, Geert Uytterhoeven Software Architect Sony Network and Software Technology Center Europe The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: Geert.Uytterhoeven@sonycom.com Internet: http://www.sony-europe.com/ Sony Network and Software Technology Center Europe A division of Sony Service Centre (Europe) N.V. Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium VAT BE 0413.825.160 · RPR Brussels Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619