# \[PATCH 02/15\] ps3fb: Do not print warnings on invalid frame numbers

- Subsystems: FRAMEBUFFER LAYER, PS3 PLATFORM SUPPORT, THE REST
- Maintainers: Helge Deller, Geoff Levand, Linus Torvalds
- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2007/10/13457739/t

## \[PATCH 02/15\] ps3fb: Do not print warnings on invalid frame numbers

- From: Antonino Daplas \<adaplas@gmail.com\>
- Date: 2007-10-13 00:34:42 
- Message: https://ratatoskr.run/linux-fbdev/2007/10/13457739.md

```text
From: Geert Uytterhoeven <redacted>

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

Signed-off-by: Geert Uytterhoeven <redacted>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---

 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/
```
