Skip to contentSkip to conversation

ps3fb: Do not print warnings on invalid frame numbers

PATCH New Antonino Daplas 1 participant 1 message Oct 13, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/15 ps3fb: Do not print warnings on invalid frame numbers

From: Geert Uytterhoeven <[email protected]>

ps3fb: Do not print warnings on invalid frame numbers, as this can be triggered from user space.

---

 drivers/video/ps3fb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/ps3fb.c +2 -2
index eb8afc7..49069db 100644
@@ -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/