From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
To: "Antonino A. Daplas" <adaplas@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
linuxppc-dev@ozlabs.org, linux-fbdev-devel@lists.sourceforge.net,
cbe-oss-dev@ozlabs.org
Subject: [patch 04/13] ps3fb: Do not print warnings on invalid frame numbers
Date: Fri, 12 Oct 2007 16:50:56 +0200 [thread overview]
Message-ID: <20071012145129.877882000@pademelon.sonytel.be> (raw)
In-Reply-To: 20071012145052.640177000@pademelon.sonytel.be
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1333 bytes --]
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
ps3fb: 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>
---
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
next prev parent reply other threads:[~2007-10-12 14:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 14:50 [patch 00/13] ps3av/fb patches for 2.6.24 Geert Uytterhoeven
2007-10-12 14:50 ` [patch 01/13] ps3av: Fix black and white stripes Geert Uytterhoeven
2007-10-12 14:50 ` [patch 02/13] ps3fb: Fix spurious mode change failures Geert Uytterhoeven
2007-10-12 14:50 ` [patch 03/13] ps3fb: Convert from printk()/DPRINTK() to dev_*()/pr_*() Geert Uytterhoeven
2007-10-12 14:50 ` Geert Uytterhoeven [this message]
2007-10-12 14:50 ` [patch 05/13] ps3fb: Clean up includes Geert Uytterhoeven
2007-10-12 14:50 ` [patch 06/13] ps3fb: Make ps3fb_wait_for_vsync() and ps3fb_flip_ctl() static Geert Uytterhoeven
2007-10-12 14:50 ` [patch 07/13] ps3fb: Fix possible overlap of GPU command buffer and frame buffer Geert Uytterhoeven
2007-10-12 14:51 ` [patch 08/13] ps3fb: Use fb_info.par properly Geert Uytterhoeven
2007-10-12 14:51 ` [patch 09/13] ps3fb: Dont keep the borders for non-fullscreen modes in XDR memory Geert Uytterhoeven
2007-10-12 14:51 ` [patch 10/13] ps3fb: Add virtual screen and panning support Geert Uytterhoeven
2007-10-12 14:51 ` [patch 11/13] ps3fb: Enhance horizontal panning on firmware 1.90 and up Geert Uytterhoeven
2007-10-12 14:51 ` [patch 12/13] fb: Move and rename extern declaration for global_mode_option Geert Uytterhoeven
2007-10-15 21:43 ` Andrew Morton
2007-10-16 7:18 ` Geert Uytterhoeven
2007-10-12 14:51 ` [patch 13/13] ps3fb: Default to 480p on DVI-D/HDMI if video=safe Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071012145129.877882000@pademelon.sonytel.be \
--to=geert.uytterhoeven@sonycom.com \
--cc=adaplas@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cbe-oss-dev@ozlabs.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox